aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/FeaturesStore.js
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-07-02 19:49:55 -0600
committerLibravatar GitHub <noreply@github.com>2021-07-03 07:19:55 +0530
commit33123c354b79f7951423dd75097b11e7eb075f99 (patch)
tree29f6e857f02d0e0fc67d89a657a54a865ed5538a /src/stores/FeaturesStore.js
parentMinor refactoring to move all runtime configs from 'config.js' into 'environm... (diff)
downloadferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.tar.gz
ferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.tar.zst
ferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.zip
Upgrade various dependencies to latest part 2 (#1557)
* Upgrade various dependencies to latest, remove unnecessary electron-hunspell - upgrade eslint and friends to latest - remove deprecated 'node-sass' in favor of 'sass' - disable new rules from 'eslint-config-airbnb' that are conflicting with current code style - add workspace config for 'vscode' that silences 'experimentalDecorator' warning and forces 'prettier' to single quote * Run yarn lint to autofix with new ruleset and worked down lint issues to zero
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r--src/stores/FeaturesStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js
index 631d0318e..2fee9bdda 100644
--- a/src/stores/FeaturesStore.js
+++ b/src/stores/FeaturesStore.js
@@ -33,7 +33,7 @@ export default class FeaturesStore extends Store {
33 33
34 @observable featuresRequest = new CachedRequest(this.api.features, 'features'); 34 @observable featuresRequest = new CachedRequest(this.api.features, 'features');
35 35
36 @observable features = Object.assign({}, DEFAULT_FEATURES_CONFIG); 36 @observable features = ({ ...DEFAULT_FEATURES_CONFIG });
37 37
38 async setup() { 38 async setup() {
39 this.registerReactions([ 39 this.registerReactions([
@@ -57,7 +57,7 @@ export default class FeaturesStore extends Store {
57 } 57 }
58 58
59 _updateFeatures = () => { 59 _updateFeatures = () => {
60 const features = Object.assign({}, DEFAULT_FEATURES_CONFIG); 60 const features = { ...DEFAULT_FEATURES_CONFIG };
61 if (this.stores.user.isLoggedIn) { 61 if (this.stores.user.isLoggedIn) {
62 let requestResult = {}; 62 let requestResult = {};
63 try { 63 try {