Skip to content

Commit

Permalink
Merge pull request #4667 from node-red/fix-subflow-property-undo
Browse files Browse the repository at this point in the history
Fix undo of subflow env property edits
  • Loading branch information
knolleary committed Apr 23, 2024
2 parents b8ca466 + 960af87 commit 211d420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -612,7 +612,10 @@ RED.deploy = (function() {
}
});
RED.nodes.eachSubflow(function (subflow) {
subflow.changed = false;
if (subflow.changed) {
subflow.changed = false;
RED.events.emit("subflows:change", subflow);
}
});
RED.nodes.eachWorkspace(function (ws) {
if (ws.changed || ws.added) {
Expand Down
Expand Up @@ -1623,8 +1623,8 @@ RED.editor = (function() {
}

if (!isSameObj(old_env, new_env)) {
editing_node.env = new_env;
editState.changes.env = editing_node.env;
editing_node.env = new_env;
editState.changed = true;
}

Expand Down

0 comments on commit 211d420

Please sign in to comment.