Skip to content

Commit

Permalink
Ensure sf instance nodes update in outliner when import-replace sf
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Sep 18, 2020
1 parent a48f082 commit 041feb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/node_modules/@node-red/editor-client/src/js/nodes.js
Expand Up @@ -1020,6 +1020,11 @@ RED.nodes = (function() {
}
}
})

newSubflowIds.forEach(function(id) {
var n = newSubflows[id];
RED.events.emit("subflows:change",n);
})
// Just in case the imported subflow changed color.
RED.utils.clearNodeColorCache();

Expand Down

0 comments on commit 041feb4

Please sign in to comment.