fix build

This commit is contained in:
2026-04-07 07:07:02 +03:00
parent 11db1e6941
commit 9fd7b61c5a
27 changed files with 74 additions and 64 deletions
+1 -1
View File
@@ -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">) {