diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 1f1c591c0f..7f81972c18 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -2021,8 +2021,14 @@ export default mixins( deleteEveryEndpoint () { if (this.instance) { const nodes = this.$store.getters.allNodes as INodeUi[]; - // @ts-ignore - nodes.forEach((node: INodeUi) => this.instance.destroyDraggable(`${NODE_NAME_PREFIX}${this.$store.getters.getNodeIndex(node.name)}`)); + nodes.forEach((node: INodeUi) => { + try { + // @ts-ignore + this.instance.destroyDraggable(`${NODE_NAME_PREFIX}${this.$store.getters.getNodeIndex(node.name)}`); // eslint-disable-line no-console + } catch (e) { + console.error(e); + } + }); // On first load it does not exist this.instance.deleteEveryEndpoint();