From e1266ec675f3c1ea3f6b054ef11891fbca2a0454 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 22 Dec 2020 13:39:19 -0500 Subject: [PATCH] Fix search filter prevention --- .../components/ft-search-filters/ft-search-filters.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/ft-search-filters/ft-search-filters.js b/src/renderer/components/ft-search-filters/ft-search-filters.js index 688a90032..8c35fc3bb 100644 --- a/src/renderer/components/ft-search-filters/ft-search-filters.js +++ b/src/renderer/components/ft-search-filters/ft-search-filters.js @@ -88,7 +88,7 @@ export default Vue.extend({ if (this.searchSettings.type !== 'video') { const typeRadio = this.$refs.typeRadio typeRadio.updateSelectedValue('all') - this.updateType('all') + this.$store.commit('setSearchType', 'all') } this.$store.commit('setSearchTime', value) }, @@ -99,8 +99,8 @@ export default Vue.extend({ const durationRadio = this.$refs.durationRadio timeRadio.updateSelectedValue('') durationRadio.updateSelectedValue('') - this.updateTime('') - this.updateDuration('') + this.$store.commit('setSearchTime', '') + this.$store.commit('setSearchDuration', '') } this.$store.commit('setSearchType', value) },