fix: search on list file

This commit is contained in:
riefive
2025-10-01 14:56:11 +07:00
parent cc41118570
commit 54a5aaa78f
12 changed files with 25 additions and 24 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ const {
handleSearch,
fetchData: getToolsList,
} = usePaginatedList({
fetchFn: async ({ page }) => {
const result = await getDevices({ search: searchInput.value, page })
fetchFn: async (params: any) => {
const result = await getDevices({ search: params.search, page: params['page-number'] || 0 })
return { success: result.success || false, body: result.body || {} }
},
entityName: 'device',