Fix: debug table typo Uplaod Doc

This commit is contained in:
hasyim_kai
2025-11-14 17:12:17 +07:00
parent bb0017ffcb
commit d0aa69d9a1
2 changed files with 6 additions and 3 deletions
@@ -24,8 +24,7 @@ export const config: Config = {
parses: {
type_code: (v: unknown) => {
console.log(v)
return docTypeLabel[v as docTypeCodeKey]
return docTypeLabel[v?.type_code as docTypeCodeKey]
},
},
@@ -19,7 +19,11 @@ const route = useRoute()
const encounterId = typeof route.params.id == 'string' ? parseInt(route.params.id) : 0
const { data, paginationMeta, handlePageChange, handleSearch, searchInput, fetchData } = usePaginatedList({
fetchFn: (params) => getList({ 'encounter-id': encounterId, ...params }),
fetchFn: (params) => getList({
'encounter-id': encounterId,
// includes: "employee",
...params,
}),
entityName: 'encounter-document',
})