From 566fe77b02de54dd7a92bdb05a9c60df5215a122 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 2 Nov 2021 20:56:53 +0100 Subject: [PATCH] fix: defaultParams function name --- src/components/list/partials/filter-popup.vue | 4 ++-- src/components/tasks/mixins/taskList.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/list/partials/filter-popup.vue b/src/components/list/partials/filter-popup.vue index f23e322e9..c260b649e 100644 --- a/src/components/list/partials/filter-popup.vue +++ b/src/components/list/partials/filter-popup.vue @@ -60,7 +60,7 @@ export default { filter_concat, s: s ?? null, } - const def = {...defaultParams(), s: null} + const def = {...getDefaultParams(), s: null} return JSON.stringify(filterParams) !== JSON.stringify(def) }, @@ -93,7 +93,7 @@ export default { }) }, clearFilters() { - this.value = {...defaultParams()} + this.value = {...getDefaultParams()} }, }, } diff --git a/src/components/tasks/mixins/taskList.js b/src/components/tasks/mixins/taskList.js index 34a0fc1de..13d33d5b0 100644 --- a/src/components/tasks/mixins/taskList.js +++ b/src/components/tasks/mixins/taskList.js @@ -28,7 +28,7 @@ export default { searchTerm: '', showTaskFilter: false, - params: {...defaultParams()}, + params: {...getDefaultParams()}, } }, watch: {