mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix error setting node.
This commit is contained in:
parent
9b10a987f3
commit
2c8236e7c2
@ -746,7 +746,8 @@ abstract class Topic extends NodeGraph {
|
|||||||
const model = this.getModel();
|
const model = this.getModel();
|
||||||
const dispatcher = ActionDispatcher.getInstance();
|
const dispatcher = ActionDispatcher.getInstance();
|
||||||
const notes = model.findFeatureByType(TopicFeatureFactory.Note.id);
|
const notes = model.findFeatureByType(TopicFeatureFactory.Note.id);
|
||||||
if (!$defined(value)) {
|
|
||||||
|
if (!$defined(value) && notes.length > 0) {
|
||||||
const featureId = notes[0].getId();
|
const featureId = notes[0].getId();
|
||||||
dispatcher.removeFeatureFromTopic(topicId, featureId);
|
dispatcher.removeFeatureFromTopic(topicId, featureId);
|
||||||
} else if (notes.length > 0) {
|
} else if (notes.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user