From 85593624b8d7c9e9f9dcde2f3456e5123f0be816 Mon Sep 17 00:00:00 2001 From: Erik Escoffier Date: Thu, 12 Oct 2023 10:30:41 +0200 Subject: [PATCH] Fixed linter error --- app/scripts/components/publication-tool/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/components/publication-tool/editor.tsx b/app/scripts/components/publication-tool/editor.tsx index 34df9d830..413757c43 100644 --- a/app/scripts/components/publication-tool/editor.tsx +++ b/app/scripts/components/publication-tool/editor.tsx @@ -53,7 +53,7 @@ export default function Editor() { }, [editorView, currentDataStory?.currentBlockId]); const currentBlockId = useCurrentBlockId(); - const setMDX = useSetBlockMDX(currentBlockId); + const setMDX = useSetBlockMDX(currentBlockId!); const onEditorUpdated = useCallback( (v) => { if (v.docChanged) {