mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 23:37:57 +01:00
Add workaround on upate text when node has been deleted.
This commit is contained in:
parent
2b4356d0de
commit
0329798f15
@ -144,7 +144,13 @@ class MultilineTextEditor extends Events {
|
||||
const topicId = this._topic.getId();
|
||||
|
||||
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