mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix the property "users" access error in runtime.start test caces (#1511)
This commit is contained in:
parent
1dd4323613
commit
3ca0e9c420
@ -55,7 +55,12 @@ var persistentSettings = {
|
|||||||
storage = _storage;
|
storage = _storage;
|
||||||
return storage.getSettings().then(function(_settings) {
|
return storage.getSettings().then(function(_settings) {
|
||||||
globalSettings = _settings;
|
globalSettings = _settings;
|
||||||
|
if (globalSettings) {
|
||||||
userSettings = globalSettings.users || {};
|
userSettings = globalSettings.users || {};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
userSettings = {};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
get: function(prop) {
|
get: function(prop) {
|
||||||
|
Loading…
Reference in New Issue
Block a user