From 68866fe4fece53c2a208263022890ef0bc2ea12b Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 6 Dec 2022 21:47:04 -0800 Subject: [PATCH] Fix feature remove NPE. --- .../src/components/commands/RemoveFeatureFromTopicCommand.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mindplot/src/components/commands/RemoveFeatureFromTopicCommand.ts b/packages/mindplot/src/components/commands/RemoveFeatureFromTopicCommand.ts index 242b8248..5ea780a2 100644 --- a/packages/mindplot/src/components/commands/RemoveFeatureFromTopicCommand.ts +++ b/packages/mindplot/src/components/commands/RemoveFeatureFromTopicCommand.ts @@ -46,6 +46,7 @@ class RemoveFeatureFromTopicCommand extends Command { execute(commandContext: CommandContext): void { const topic = commandContext.findTopics([this._topicId])[0]; const feature = topic.findFeatureById(this._featureId); + this._oldFeature = feature; topic.removeFeature(feature); }