perf: refs #8197 fix and imrpove filters #1234

Merged
alexm merged 6 commits from 8197-fix_filters into dev 2025-01-21 10:48:32 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 94c0cccb1e - Show all commits

View File

@ -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) {

Si le damos un valor por defecto al parámetro nos podríamos quitar 1 condición del if no?

Si le damos un valor por defecto al parámetro nos podríamos quitar 1 condición del if no?
Outdated
Review

Vooy

Vooy

Genial

Genial
params.value = {};
orders.value = {};
return;