diff options
author | 2019-11-25 10:49:34 +0100 | |
---|---|---|
committer | 2019-11-25 10:49:34 +0100 | |
commit | c3a8d26cf4d7ffe3642cdc962e51e367885a9c12 (patch) | |
tree | 34d8cf9c8311165a81542d035079a91aa09ff3a6 /src/stores/FeaturesStore.js | |
parent | Bump version number (diff) | |
parent | Bump version number (diff) | |
download | ferdium-app-5.4.0.tar.gz ferdium-app-5.4.0.tar.zst ferdium-app-5.4.0.zip |
Merge branch 'develop'v5.4.0
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r-- | src/stores/FeaturesStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index ab5d762c7..780cde3a7 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js | |||
@@ -57,7 +57,10 @@ export default class FeaturesStore extends Store { | |||
57 | _updateFeatures = () => { | 57 | _updateFeatures = () => { |
58 | const features = Object.assign({}, DEFAULT_FEATURES_CONFIG); | 58 | const features = Object.assign({}, DEFAULT_FEATURES_CONFIG); |
59 | if (this.stores.user.isLoggedIn) { | 59 | if (this.stores.user.isLoggedIn) { |
60 | const requestResult = this.featuresRequest.execute().result; | 60 | let requestResult = {}; |
61 | try { | ||
62 | requestResult = this.featuresRequest.execute().result; | ||
63 | } catch (e) {} // eslint-disable-line no-empty | ||
61 | Object.assign(features, requestResult); | 64 | Object.assign(features, requestResult); |
62 | } | 65 | } |
63 | runInAction('FeaturesStore::_updateFeatures', () => { | 66 | runInAction('FeaturesStore::_updateFeatures', () => { |