diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stores/SettingsStore.js | 4 |
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 | ||