From 38c46ec73b0faf5d316db1aa970da9f33c6c5a6a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 20 Oct 2021 22:18:12 +0200 Subject: [PATCH] Allow global search on the home channel --- src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.js b/src/store.js index 0eb02ca..7cca7cb 100644 --- a/src/store.js +++ b/src/store.js @@ -262,7 +262,7 @@ export default new Vuex.Store({ }, startQuery({state, commit}, query) { let channel = 'global' - if (state.channel.uid !== null) { + if (state.channel !== null && state.channel.uid !== null && state.channel.uid !== 'home') { channel = state.channel.uid } return fetch(this.state.microsubEndpoint + '?action=search&channel='+channel+'&query='+query, {