From 94c0cccb1e26bf890c79b5b4d6c5f4f4197d5d7f Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 17 Jan 2025 07:16:24 +0100 Subject: [PATCH] perf: refs #8197 default is object --- src/composables/useFilterParams.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composables/useFilterParams.js b/src/composables/useFilterParams.js index e3d4c8703..07dcdf99b 100644 --- a/src/composables/useFilterParams.js +++ b/src/composables/useFilterParams.js @@ -29,8 +29,8 @@ export function useFilterParams(key) { orders.value = orderObject; } - function setUserParams(watchedParams) { - if (!watchedParams || Object.keys(watchedParams).length == 0) { + function setUserParams(watchedParams = {}) { + if (Object.keys(watchedParams).length == 0) { params.value = {}; orders.value = {}; return;