Skip to content

Commit 4825f9a

Browse files
committed
🚨(frontend) fix lint warning about unnecessary assertion
Recent upgrade highlighted a lint warning about an unnecessary assertion in the BlockNoteToolbar component. This commit removes the assertion to resolve the warning.
1 parent 14b7cdf commit 4825f9a

File tree

1 file changed

+2
-2
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar

1 file changed

+2
-2
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/BlockNoteToolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
getFormattingToolbarItems,
66
useDictionary,
77
} from '@blocknote/react';
8-
import React, { JSX, useCallback, useMemo, useState } from 'react';
8+
import React, { useCallback, useMemo, useState } from 'react';
99
import { useTranslation } from 'react-i18next';
1010

1111
import { useConfig } from '@/core/config/api';
@@ -50,7 +50,7 @@ export const BlockNoteToolbar = () => {
5050
);
5151
}
5252

53-
return toolbarItems as JSX.Element[];
53+
return toolbarItems;
5454
}, [dict, t]);
5555

5656
const formattingToolbar = useCallback(() => {

0 commit comments

Comments
 (0)