1
0
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:
Nick O'Leary 2014-09-20 21:27:09 +01:00
parent ed1da5cf7b
commit f939d52551

View File

@ -76,6 +76,12 @@ var registry = (function() {
init: function() {
if (settings.available()) {
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 {
nodeConfigs = {};
}