fix: apply search filter to tools list view (#5469) (#5487)

* fix: apply search filter to tools list view

* tools table filtering

* lint fix

---------

Co-authored-by: Henry Heng <henryheng@flowiseai.com>
This commit is contained in:
Wanyi 2025-11-26 07:38:29 +08:00 committed by GitHub
parent 9dbb4bf623
commit 315e3aedc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -245,7 +245,11 @@ const Tools = () => {
))}
</Box>
) : (
<ToolsTable data={getAllToolsApi.data.data} isLoading={isLoading} onSelect={edit} />
<ToolsTable
data={getAllToolsApi.data?.data?.filter(filterTools) || []}
isLoading={isLoading}
onSelect={edit}
/>
)}
{/* Pagination and Page Size Controls */}
<TablePagination currentPage={currentPage} limit={pageLimit} total={total} onChange={onChange} />