diff --git a/coral/media/js/viewmodels/workflow-builder-card.js b/coral/media/js/viewmodels/workflow-builder-card.js index 107234964..c9e4936e9 100644 --- a/coral/media/js/viewmodels/workflow-builder-card.js +++ b/coral/media/js/viewmodels/workflow-builder-card.js @@ -216,7 +216,9 @@ define([ }; this.init = async () => { - this.currentComponentData(JSON.parse(JSON.stringify(this.componentData || {}))); + if (this.componentData) { + this.currentComponentData(JSON.parse(JSON.stringify(this.componentData))); + } await this.loadGraphComponents(); this.loadComponent(); this.loadComponentNodes();