fix: search on list file
This commit is contained in:
@@ -44,8 +44,8 @@ const {
|
||||
handleSearch,
|
||||
fetchData: getInstallationList,
|
||||
} = usePaginatedList({
|
||||
fetchFn: async ({ page, search }) => {
|
||||
const result = await getInstallations({ search, page })
|
||||
fetchFn: async (params: any) => {
|
||||
const result = await getInstallations({ search: params.search, page: params['page-number'] || 0 })
|
||||
return { success: result.success || false, body: result.body || {} }
|
||||
},
|
||||
entityName: 'installation',
|
||||
@@ -111,7 +111,7 @@ watch([recId, recAction], () => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
await getEncounterClassList();
|
||||
await getEncounterClassList()
|
||||
await getInstallationList()
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user