Maps fixed.

This commit is contained in:
Paulo Gustavo Veiga 2022-11-23 08:26:19 -08:00
parent d52d4a0e41
commit 966d817a02

View File

@ -80,13 +80,13 @@ const Editor = ({
const mindplotRef = useCallback((component: MindplotWebComponent) => { const mindplotRef = useCallback((component: MindplotWebComponent) => {
const model = new Model(component); const model = new Model(component);
model.registerEvents(setCanvasUpdate, capability);
// Force refresh after map load ... // Force refresh after map load ...
model model
.loadMindmap(mapInfo.getId(), persistenceManager, widgetManager) .loadMindmap(mapInfo.getId(), persistenceManager, widgetManager)
.then(() => { .then(() => {
setCanvasUpdate(Date.now()); setCanvasUpdate(Date.now());
model.registerEvents(setCanvasUpdate, capability);
}) })
.catch((e) => { .catch((e) => {
console.error(e); console.error(e);