[frontend] prevent js workflow error when moving args
@@ -671,12 +671,14 @@ ${ utils.submit_popup_event() }
showAddActionDemiModal(widget);
});
} else {
+ if (widget) {
if (window.workflowEditorViewModel.currentlyDraggedOp() == "move"){
window.workflowEditorViewModel.workflow.moveNode(widget);
} else { // Copy
var _sourceNode = window.workflowEditorViewModel.workflow.getNodeById(window.workflowEditorViewModel.currentlyDraggedWidget().id());
window.workflowEditorViewModel.workflow.newNode(widget, window.workflowEditorViewModel.workflow.addNode, _sourceNode);
}
+ }
window.setTimeout(renderChangeables, 0);
}
}
