fix: includes for unit

This commit is contained in:
riefive
2025-10-01 15:24:54 +07:00
parent db48233f6c
commit 546423bdfb
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ const {
fetchData: getUnitList,
} = usePaginatedList({
fetchFn: async (params: any) => {
const result = await getUnits({ search: params.search, page: params['page-number'] || 0 })
const result = await getUnits({ search: params.search, page: params['page-number'] || 0, includes: 'installation' })
return { success: result.success || false, body: result.body || {} }
},
entityName: 'unit',