diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx index ca62a447bf..24cb75e303 100644 --- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx +++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx @@ -360,7 +360,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { } }); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.updateTemplate]); useEffect(() => { @@ -375,7 +374,7 @@ export default function ToolbarPlugin(props: TextEditorProps) { $getRoot().select(); try { $insertNodes(nodes); - } catch (e: unknown) { + } catch { // resolves: "topLevelElement is root node at RangeSelection.insertNodes" // @see https://stackoverflow.com/questions/73094258/setting-editor-from-html const paragraphNode = $createParagraphNode(); @@ -397,7 +396,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { }); }); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, []); useEffect(() => { @@ -467,7 +465,7 @@ export default function ToolbarPlugin(props: TextEditorProps) { )} - <> +
{!props.excludedToolbarItems?.includes("bold") && (
{props.variables && (