From 035dc1bbb1951bfe99740009f8b999c65861d133 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sat, 1 Dec 2018 14:34:39 +0100 Subject: Move default feature config to config.js --- src/stores/UserStore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/stores/UserStore.js') diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 9d8ac5657..d1e6d6570 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js @@ -122,13 +122,13 @@ export default class UserStore extends Store { } @computed get data() { - this.getUserInfoRequest.execute(); - return this.getUserInfoRequest.result || {}; + if (!this.isLoggedIn) return {}; + + return this.getUserInfoRequest.execute().result || {}; } @computed get legacyServices() { - this.getLegacyServicesRequest.execute(); - return this.getLegacyServicesRequest.result || []; + return this.getLegacyServicesRequest.execute() || {}; } // Actions -- cgit v1.2.3-54-g00ecf