From ed58fa228e4d419f534baa6db0806569e96e721d Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 3 Jun 2025 16:10:23 +0200 Subject: [PATCH] save4 --- .../docs/doc-editor/components/custom-blocks/DrawBlock.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DrawBlock.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DrawBlock.tsx index 8eebdd8b..eb63e945 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DrawBlock.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DrawBlock.tsx @@ -36,7 +36,7 @@ export const DrawBlock = createReactBlockSpec( content: 'inline', }, { - render: ({ block, editorBN }: ReactRendererProps<'draw'>) => { + render: ({ block, editor: editorBN }) => { const [editor, setEditor] = useState(); const setAppToState = useCallback((editor: Editor) => { @@ -52,6 +52,7 @@ export const DrawBlock = createReactBlockSpec( function logChangeEvent(eventName: string) { console.log(eventName); + editorBN.updateBlock(block, { props: {} }); setStoreEvents((events) => [...events, eventName]); }