Skip to content

Commit b8ea627

Browse files
committed
bugfix + as any cleanup
1 parent a4dd095 commit b8ea627

File tree

3 files changed

+1687
-1755
lines changed

3 files changed

+1687
-1755
lines changed

apps/property-tree/src/services/api/core/leaseSearchService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,15 @@ async function getBuildingManagers(): Promise<BuildingManager[]> {
8383
async function getContactsByFilters(
8484
params: LeaseSearchQueryParams
8585
): Promise<ContactInfo[]> {
86-
const { data, error } = await GET('/contacts/from-lease-search' as any, {
86+
const { data, error } = await GET('/contacts/from-lease-search', {
8787
params: {
8888
query: params,
8989
},
9090
})
9191

9292
if (error) throw error
9393

94-
const response = data as { content?: ContactInfo[] }
95-
return response.content ?? []
94+
return data.content ?? []
9695
}
9796

9897
async function exportLeasesToExcel(

0 commit comments

Comments
 (0)