forked from verdnatura/salix-front
perf: simplify if
This commit is contained in:
parent
97fee8d1d0
commit
2505061b8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue