Fix toggling streaming parameter in store

This commit is contained in:
Erki Aas 2022-11-08 19:40:33 +02:00
parent 38bbf5b8a7
commit d5c548193d
1 changed files with 2 additions and 1 deletions

View File

@ -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
},
},