🚨(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.
- Fix a test - upgrade causes an error on a selector click
This commit is contained in:
Anthony LC
2025-07-24 12:38:31 +02:00
parent 14b7cdf561
commit b28ff8f632
2 changed files with 15 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import {
getFormattingToolbarItems,
useDictionary,
} from '@blocknote/react';
import React, { JSX, useCallback, useMemo, useState } from 'react';
import React, { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useConfig } from '@/core/config/api';
@@ -50,7 +50,7 @@ export const BlockNoteToolbar = () => {
);
}
return toolbarItems as JSX.Element[];
return toolbarItems;
}, [dict, t]);
const formattingToolbar = useCallback(() => {