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}; }