From 6c597bba5b0e00f9e86246f81076df2cdf9d8cdf Mon Sep 17 00:00:00 2001 From: Christian Vaas Date: Tue, 8 Aug 2023 19:21:31 +0200 Subject: [PATCH] fix: undefined node and wrong method name --- packages/node_modules/@node-red/editor-client/src/js/nodes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index 94bdbfcf7..064394c29 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -707,8 +707,8 @@ RED.nodes = (function() { if (node && node._def.onremove) { // Deprecated: never documented but used by some early nodes - console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditremove - please report"); - node._def.onremove.call(n); + console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditdelete - please report"); + node._def.onremove.call(node); } return {links:removedLinks,nodes:removedNodes}; }