diff --git a/packages/editor/src/components/index.tsx b/packages/editor/src/components/index.tsx index 6e0c3d17..2db25438 100644 --- a/packages/editor/src/components/index.tsx +++ b/packages/editor/src/components/index.tsx @@ -80,13 +80,13 @@ const Editor = ({ const mindplotRef = useCallback((component: MindplotWebComponent) => { const model = new Model(component); - model.registerEvents(setCanvasUpdate, capability); // Force refresh after map load ... model .loadMindmap(mapInfo.getId(), persistenceManager, widgetManager) .then(() => { setCanvasUpdate(Date.now()); + model.registerEvents(setCanvasUpdate, capability); }) .catch((e) => { console.error(e);