mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
wrap in try catch
This commit is contained in:
parent
462ea0a4ae
commit
4b0444747f
|
@ -2021,8 +2021,14 @@ export default mixins(
|
|||
deleteEveryEndpoint () {
|
||||
if (this.instance) {
|
||||
const nodes = this.$store.getters.allNodes as INodeUi[];
|
||||
nodes.forEach((node: INodeUi) => {
|
||||
try {
|
||||
// @ts-ignore
|
||||
nodes.forEach((node: INodeUi) => this.instance.destroyDraggable(`${NODE_NAME_PREFIX}${this.$store.getters.getNodeIndex(node.name)}`));
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue