1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2872 from node-red-hitachi/fix-node-deploy-with-group-change

Fix deploy of node in group
This commit is contained in:
Nick O'Leary 2021-02-16 14:18:08 +00:00 committed by GitHub
commit 644da0b77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,8 +442,21 @@ module.exports = {
// This node has a property that references a changed/removed node // This node has a property that references a changed/removed node
// Assume it is a config node change and mark this node as // Assume it is a config node change and mark this node as
// changed. // changed.
if (changed[node[prop]] || removed[node[prop]]) {
var changeOrigin = changed[node[prop]];
if (changeOrigin || removed[node[prop]]) {
if (!changed[node.id]) { if (!changed[node.id]) {
if (changeOrigin &&
(prop === "g") &&
(changeOrigin.type === "group")) {
var oldNode = oldConfig.allNodes[node.id];
// ignore change of group node
// if group of this node not changed
if (oldNode &&
(node.g === oldNode.g)) {
continue;
}
}
madeChange = true; madeChange = true;
changed[node.id] = node; changed[node.id] = node;
// This node exists within subflow template // This node exists within subflow template