From c4fd921377ccb4eeb480c560b372a4ea5d0c9d08 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 25 Nov 2025 15:41:09 +0800 Subject: [PATCH] fix: ensure filterList is properly initialized and updated in getList function --- ui/src/views/tool/toolStore/ToolStoreDialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/views/tool/toolStore/ToolStoreDialog.vue b/ui/src/views/tool/toolStore/ToolStoreDialog.vue index 71d8c7cdc..af178f950 100644 --- a/ui/src/views/tool/toolStore/ToolStoreDialog.vue +++ b/ui/src/views/tool/toolStore/ToolStoreDialog.vue @@ -161,6 +161,7 @@ function open(id: string) { } async function getList() { + filterList.value = null if (toolType.value === 'DATA_SOURCE') { categories.value = [ { @@ -194,7 +195,7 @@ async function getInternalToolList() { const categories = defaultCategories.value const res = await ToolStoreApi.getInternalToolList({ name: searchValue.value }, loading) if (searchValue.value.length) { - filterList.value = res.data + filterList.value = [...res.data, ...filterList.value || []] } else { filterList.value = null categories.forEach((category) => { @@ -223,7 +224,7 @@ async function getStoreToolList() { tool.desc = tool.description }) if (searchValue.value.length) { - filterList.value = res.data.apps + filterList.value = [...res.data.apps, ...filterList.value || []] } else { filterList.value = null categories = tags.map((tag: any) => ({