aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-04-03 19:46:10 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-04-03 19:55:36 +0200
commitcb546fb8d5f341a1cad0ff3f29540b4480eb27bd (patch)
tree0b219240431b93cd151fbddc2fae7082d7c576ab /src
parentMerge branch 'release/5.0.0-beta.17' into develop (diff)
downloadferdium-app-cb546fb8d5f341a1cad0ff3f29540b4480eb27bd.tar.gz
ferdium-app-cb546fb8d5f341a1cad0ff3f29540b4480eb27bd.tar.zst
ferdium-app-cb546fb8d5f341a1cad0ff3f29540b4480eb27bd.zip
Fix reintroduced mobx issue with non-existing keys
Diffstat (limited to 'src')
-rw-r--r--src/stores/SettingsStore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 82fc2a279..d1327899c 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -20,7 +20,9 @@ export default class SettingsStore extends Store {
20 this.actions.settings.remove.listen(this._remove.bind(this)); 20 this.actions.settings.remove.listen(this._remove.bind(this));
21 } 21 }
22 22
23 setup() { 23 async setup() {
24 // We need to wait until `appSettingsRequest` has been executed once, otherwise we can't patch the result. If we don't wait we'd run into an issue with mobx not reacting to changes of previously not existing keys
25 await this.appSettingsRequest._promise;
24 this._migrate(); 26 this._migrate();
25 } 27 }
26 28