mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-21 22:27:56 +01:00
Maps fixed.
This commit is contained in:
parent
d52d4a0e41
commit
966d817a02
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user