perf: refs #8197 default is object
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-17 07:16:24 +01:00
parent d95350a8eb
commit 94c0cccb1e
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ export function useFilterParams(key) {
orders.value = orderObject; orders.value = orderObject;
} }
function setUserParams(watchedParams) { function setUserParams(watchedParams = {}) {
if (!watchedParams || Object.keys(watchedParams).length == 0) { if (Object.keys(watchedParams).length == 0) {
params.value = {}; params.value = {};
orders.value = {}; orders.value = {};
return; return;