ref #5417 search and refresh fixed
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-10-11 10:54:11 +02:00
parent d9b4ee006d
commit 6d116b9798
1 changed files with 3 additions and 5 deletions

View File

@ -51,9 +51,8 @@ async function search() {
} }
isLoading.value = true; isLoading.value = true;
await arrayData.addFilter({ params }); await arrayData.addFilter({ params });
if (!props.showAll && !Object.values(userParams.value).find((param) => param)) { if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
store.data = [];
}
isLoading.value = false; isLoading.value = false;
} }
@ -61,8 +60,7 @@ async function reload() {
isLoading.value = true; isLoading.value = true;
await arrayData.fetch({ append: false }); await arrayData.fetch({ append: false });
if (!props.showAll && !Object.values(userParams.value).find((param) => param)) if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
store.data = [];
isLoading.value = false; isLoading.value = false;
emit('refresh'); emit('refresh');
} }