fix: search not working in services table (#5353)

This commit is contained in:
Vikrant Gupta 2024-06-26 16:30:11 +05:30 committed by GitHub
parent de571aa69a
commit 2fb5b16840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,10 +33,12 @@ export const getColumnSearchProps = (
record: ServicesList, record: ServicesList,
): boolean => { ): boolean => {
if (record[dataIndex]) { if (record[dataIndex]) {
record[dataIndex] return (
?.toString() record[dataIndex]
.toLowerCase() ?.toString()
.includes(value.toString().toLowerCase()); .toLowerCase()
.includes(value.toString().toLowerCase()) || false
);
} }
return false; return false;