change design dashboards all page and search clinics
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ export function validatePhoneNumber(input) {
|
||||
|
||||
export const searchOnList = (list, value, name) => {
|
||||
let newList = list;
|
||||
newList = list.filter((item) => item[name].toLowerCase().includes(value));
|
||||
newList = list.filter((item) => item[name]?.toLowerCase()?.includes(value));
|
||||
return newList;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user