mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Restore node ids from config list
This commit is contained in:
parent
ed1da5cf7b
commit
f939d52551
@ -76,6 +76,12 @@ var registry = (function() {
|
|||||||
init: function() {
|
init: function() {
|
||||||
if (settings.available()) {
|
if (settings.available()) {
|
||||||
nodeConfigs = settings.get("nodes")||{};
|
nodeConfigs = settings.get("nodes")||{};
|
||||||
|
// Restore the node id property to individual entries
|
||||||
|
for (var id in nodeConfigs) {
|
||||||
|
if (nodeConfigs.hasOwnProperty(id)) {
|
||||||
|
nodeConfigs[id].id = id;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
nodeConfigs = {};
|
nodeConfigs = {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user