mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
make nodes with only group change not deployed by nodes deploy mode
This commit is contained in:
@@ -271,7 +271,7 @@ module.exports = {
|
||||
|
||||
parseConfig: parseConfig,
|
||||
|
||||
diffConfigs: function(oldConfig, newConfig) {
|
||||
diffConfigs: function(oldConfig, newConfig, ignoreGroup) {
|
||||
var id;
|
||||
var node;
|
||||
var nn;
|
||||
@@ -438,6 +438,9 @@ module.exports = {
|
||||
if (newConfig.allNodes.hasOwnProperty(id)) {
|
||||
node = newConfig.allNodes[id];
|
||||
for (var prop in node) {
|
||||
if (ignoreGroup && (prop === "g")) {
|
||||
continue;
|
||||
}
|
||||
if (node.hasOwnProperty(prop) && prop != "z" && prop != "id" && prop != "wires") {
|
||||
// This node has a property that references a changed/removed node
|
||||
// Assume it is a config node change and mark this node as
|
||||
|
||||
Reference in New Issue
Block a user