do not apply daemonSettings that are null

This commit is contained in:
jessop 2020-02-21 17:28:45 -05:00
parent 03f1d91c61
commit 4c1aac0a48

View file

@ -485,7 +485,7 @@ export function doGetAndPopulatePreferences() {
// @if TARGET='app' // @if TARGET='app'
const { settings, sharing_3P: sharing3P } = savedPreferences.value; const { settings, sharing_3P: sharing3P } = savedPreferences.value;
Object.entries(settings).forEach(([key, val]) => { Object.entries(settings).forEach(([key, val]) => {
if (daemonSettings[key] !== val) { if (val !== null && daemonSettings[key] !== val) {
dispatch(doSetDaemonSetting(key, val, true)); dispatch(doSetDaemonSetting(key, val, true));
} }
}); });