mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 19:47:57 +01:00
Add workaround on upate text when node has been deleted.
This commit is contained in:
parent
7bdcd1549b
commit
8816a5e58d
@ -144,7 +144,13 @@ class MultilineTextEditor extends Events {
|
|||||||
const topicId = this._topic.getId();
|
const topicId = this._topic.getId();
|
||||||
|
|
||||||
const actionDispatcher = ActionDispatcher.getInstance();
|
const actionDispatcher = ActionDispatcher.getInstance();
|
||||||
actionDispatcher.changeTextToTopic([topicId], text);
|
try {
|
||||||
|
actionDispatcher.changeTextToTopic([topicId], text);
|
||||||
|
} catch (e) {
|
||||||
|
// Hack: For some reasom, editor seems to end up connexted to a deleted node.
|
||||||
|
// More research required.
|
||||||
|
console.error(`Text could not be update -> ${JSON.stringify(e)}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user