From b28873c67df5b4be9dc6dbd8708ff891cf48370d Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 9 Jan 2025 08:30:23 +0100 Subject: [PATCH] perf: simplify if --- src/composables/useArrayData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index f674b1dac..412e17598 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -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;