perf: simplify if
gitea/salix-front/pipeline/pr-test Build queued... Details

This commit is contained in:
Alex Moreno 2025-01-09 08:30:23 +01:00
parent 2505061b8c
commit b28873c67d
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
store.hasMoreData = limit && response.data.length >= limit;
if (!append && !isDialogOpened() && updateRouter) {
if (updateStateParams()?.redirect) return;
if (updateStateParams(response.data)?.redirect) return;
}
store.isLoading = false;
canceller = null;