From 2b5fa37b705215044815bd93e0d1de67af8c6b54 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 21 Jul 2025 17:26:34 +0100 Subject: [PATCH] Add splice history events to original add event --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index 0c1f31641..00989c01d 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -1520,6 +1520,7 @@ RED.view = (function() { } var nn; var historyEvent; + let addHistoryEvent; if (/^_action_:/.test(type)) { const actionName = type.substring(9) quickAddActive = false; @@ -1553,6 +1554,7 @@ RED.view = (function() { nn = result.node; historyEvent = result.historyEvent; } + addHistoryEvent = historyEvent; if (keepAdding) { mouse_mode = RED.state.QUICK_JOINING; } @@ -1707,7 +1709,8 @@ RED.view = (function() { if (linkToSplice) { resetMouseVars(); - spliceLink(linkToSplice, nn, historyEvent) + // Add any history event data to the original add event + spliceLink(linkToSplice, nn, addHistoryEvent) } RED.history.push(historyEvent); RED.nodes.dirty(true);