From d5c548193dfffdb218de30aa8d6c5dba9fc2d44b Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Tue, 8 Nov 2022 19:40:33 +0200 Subject: [PATCH] Fix toggling streaming parameter in store --- src/stores/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/index.js b/src/stores/index.js index 9cb374b..2602118 100644 --- a/src/stores/index.js +++ b/src/stores/index.js @@ -33,7 +33,8 @@ const store = createStore({ }, TOGGLE_FILTER_QUERY_STREAMING(state) { let query = state.filterQuery - query['streaming'] = !(query['streaming'] ?? false) + query['streaming'] = (query['streaming'] === undefined) ? false : query['streaming'] + query['streaming'] = !(query['streaming']) state.filterQuery = query }, },