Skip to content

Commit ae7470a

Browse files
committed
only patch if it changed
1 parent 41c0374 commit ae7470a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/Preferences.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ qx.Class.define("osparc.Preferences", {
210210
.catch(err => osparc.FlashMessenger.logError(err));
211211
},
212212

213-
__patchPreference: function(value, _, propName) {
213+
__patchPreference: function(value, old, propName) {
214+
// only patch if it changed
215+
if (value === old) {
216+
return;
217+
}
214218
this.self().patchPreference(propName, value);
215219
}
216220
}

0 commit comments

Comments
 (0)