handle pagination in clinics page & change design login & fix bug filter state & change list most searched in home page & handle error page doctor item & change key url doctors and home page and get data from url & send data with url search to doctors page & show pagination only when list is long
This commit is contained in:
+4
-1
@@ -168,7 +168,10 @@ export const filterList = (data) => {
|
||||
const changedParentList = addKeyToList(parentList, 'label', 'name') || [];
|
||||
const changedChildrenList = addKeyToList(childrenList, 'label', 'name') || [];
|
||||
|
||||
const filteredChildrenList = changedChildrenList.filter(item => item.parent === data.category.id);
|
||||
const filteredChildrenList =
|
||||
data && data.category ?
|
||||
changedChildrenList.filter(item => item.parent === data.category.id) :
|
||||
[];
|
||||
|
||||
return {
|
||||
parentList: changedParentList,
|
||||
|
||||
Reference in New Issue
Block a user