mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Strip off env property if it is empty - avoid inflated flow files
This commit is contained in:
parent
0f0cb3ac6d
commit
b8ad6475e1
@ -1097,6 +1097,11 @@ RED.nodes = (function() {
|
||||
// Until we know how that can happen, add a filter here to remove them
|
||||
node.nodes = node.nodes.filter(function(n) { return !!n }).map(function(n) { return n.id });
|
||||
}
|
||||
if (n.type === "tab" || n.type === "group") {
|
||||
if (node.env && node.env.length === 0) {
|
||||
delete node.env;
|
||||
}
|
||||
}
|
||||
if (n._def.category != "config") {
|
||||
node.x = n.x;
|
||||
node.y = n.y;
|
||||
|
Loading…
Reference in New Issue
Block a user