mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Fix feature remove NPE.
This commit is contained in:
parent
9c5130c82c
commit
68866fe4fe
@ -46,6 +46,7 @@ class RemoveFeatureFromTopicCommand extends Command {
|
|||||||
execute(commandContext: CommandContext): void {
|
execute(commandContext: CommandContext): void {
|
||||||
const topic = commandContext.findTopics([this._topicId])[0];
|
const topic = commandContext.findTopics([this._topicId])[0];
|
||||||
const feature = topic.findFeatureById(this._featureId);
|
const feature = topic.findFeatureById(this._featureId);
|
||||||
|
this._oldFeature = feature;
|
||||||
topic.removeFeature(feature);
|
topic.removeFeature(feature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user