diff --git a/CHANGELOG.md b/CHANGELOG.md index b40b2e11..f3874f42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# TBD + +- [FP-2972](https://movai.atlassian.net/browse/FP-2972):Opening flow when nodes don't exist results in stacktrace + # 1.2.9 - [FP-2926](https://movai.atlassian.net/browse/FP-2926): Clear console and app errors diff --git a/src/editors/Flow/model/subModels/NodeInstance/NodeInstance.js b/src/editors/Flow/model/subModels/NodeInstance/NodeInstance.js index 18e9e995..144b75ff 100644 --- a/src/editors/Flow/model/subModels/NodeInstance/NodeInstance.js +++ b/src/editors/Flow/model/subModels/NodeInstance/NodeInstance.js @@ -60,7 +60,7 @@ class NodeInstance extends Model { } ); - this.templateDoc = templateDoc; + this.templateDoc = templateDoc ?? {}; return this; }