fix build
This commit is contained in:
@@ -47,7 +47,7 @@ export class InspectionsClient extends CrudClient<
|
||||
|
||||
async getById(id: string) {
|
||||
const res = await super.list({ query: { id } } as never)
|
||||
return {...res, data: res.data[0] }
|
||||
return {...res, data: res.data?.[0] }
|
||||
}
|
||||
|
||||
async changeStatus(payload: ApiRequestBody<typeof INSPECTION_ROUTES.CHANGE_STATUS, "post">) {
|
||||
|
||||
Reference in New Issue
Block a user