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,
): boolean => {
if (record[dataIndex]) {
record[dataIndex]
?.toString()
.toLowerCase()
.includes(value.toString().toLowerCase());
return (
record[dataIndex]
?.toString()
.toLowerCase()
.includes(value.toString().toLowerCase()) || false
);
}
return false;