mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +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 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user