fix: refs #8036 only add where when required
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-10-18 13:48:10 +02:00
parent 8381a25017
commit bfc906a346
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
});
}
params.filter.where = { ...params.filter.where, ...exprFilter };
if (params.filter.where || exprFilter)
params.filter.where = { ...params.filter.where, ...exprFilter };
params.filter = JSON.stringify(params.filter);
store.isLoading = true;