diff options
-rw-r--r-- | src/api/apiBase.js | 6 | ||||
-rw-r--r-- | src/stores/NewsStore.js | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js index 42f09eaa8..ab47c78ee 100644 --- a/src/api/apiBase.js +++ b/src/api/apiBase.js | |||
@@ -8,9 +8,11 @@ import { | |||
8 | 8 | ||
9 | const apiBase = () => { | 9 | const apiBase = () => { |
10 | let url; | 10 | let url; |
11 | if (!window.ferdi.stores.settings || !window.ferdi.stores.settings.all) { | 11 | if (!window.ferdi || |
12 | !window.ferdi.stores.settings || | ||
13 | !window.ferdi.stores.settings.all) { | ||
12 | // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded | 14 | // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded |
13 | url = 'https://localhost:9999'; | 15 | url = 'https://1.1.1.1'; |
14 | } else if (window.ferdi.stores.settings.all.app.server) { | 16 | } else if (window.ferdi.stores.settings.all.app.server) { |
15 | // Load URL from store | 17 | // Load URL from store |
16 | url = window.ferdi.stores.settings.all.app.server; | 18 | url = window.ferdi.stores.settings.all.app.server; |
diff --git a/src/stores/NewsStore.js b/src/stores/NewsStore.js index 86e092592..92d34029e 100644 --- a/src/stores/NewsStore.js +++ b/src/stores/NewsStore.js | |||
@@ -29,7 +29,8 @@ export default class NewsStore extends Store { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | @computed get latest() { | 31 | @computed get latest() { |
32 | return this.latestNewsRequest.execute().result || []; | 32 | // return this.latestNewsRequest.execute().result || []; |
33 | return [] | ||
33 | } | 34 | } |
34 | 35 | ||
35 | // Actions | 36 | // Actions |