1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2584 from sammachin/sammachin-settings_set_fix

fix for settings.set subsequent updates
This commit is contained in:
Nick O'Leary 2020-06-01 09:30:41 +01:00 committed by GitHub
commit c6c42740c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ var persistentSettings = {
throw new Error(log._("settings.not-available"));
}
var current = globalSettings[prop];
globalSettings[prop] = value;
globalSettings[prop] = clone(value);
try {
assert.deepEqual(current,value);
return when.resolve();