0
0
Fork 0

perf: simplify if

This commit is contained in:
Alex Moreno 2025-01-09 08:06:35 +01:00
parent 97fee8d1d0
commit 2505061b8c
1 changed files with 1 additions and 2 deletions

View File

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