Skip to content

Commit 96a5bb2

Browse files
committed
chore: suggestion fixes
1 parent ee0a5c5 commit 96a5bb2

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

Lines changed: 10 additions & 15 deletions
Loading

src/Shared/Components/GenericInfoCard/GenericInfoCardListing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const GenericInfoCardListing = ({
2929
}
3030

3131
const loweredSearchKey = searchKey.toLowerCase()
32-
return list.filter(({ title }) => title.toLowerCase().includes(loweredSearchKey))
32+
return sanitizedList.filter(({ title }) => title.toLowerCase().includes(loweredSearchKey))
3333
}, [searchKey, list, error])
3434

3535
if (isLoading) {

src/Shared/Components/GenericInfoCard/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface GenericInfoCardListingProps
5959
Record<'id', string>)[]
6060
emptyStateConfig: Pick<GenericEmptyStateType, 'title' | 'subTitle' | 'image' | 'renderButton' | 'renderButton'>
6161
searchKey?: string
62-
reloadList?: () => void
62+
reloadList: () => void
6363
error?: APIResponseHandlerProps['error']
6464
isLoading?: boolean
6565
}

0 commit comments

Comments
 (0)