diff --git a/src/pages/Directory/Directory.jsx b/src/pages/Directory/Directory.jsx index 3b3f4671..05f465c9 100644 --- a/src/pages/Directory/Directory.jsx +++ b/src/pages/Directory/Directory.jsx @@ -39,6 +39,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => { const [openBucketModal, setOpenBucketModal] = useState(false); const [notes, setNotes] = useState([]); const [filterAppliedNotes, setFilterAppliedNotes] = useState([]); + const [filterAppliedNotes, setFilterAppliedNotes] = useState([]); // const [selectedOrgs, setSelectedOrgs] = useState([]); // ✅ Changed to an array for multiple selections @@ -354,6 +355,7 @@ const Directory = ({ IsPage = true, prefernceContacts }) => { contactsToExport={contacts} notesToExport={notes} selectedNoteNames={selectedNoteNames} + selectedNoteNames={selectedNoteNames} setSelectedNoteNames={setSelectedNoteNames} notesForFilter={notes} setFilterAppliedNotes={setFilterAppliedNotes} @@ -361,97 +363,75 @@ const Directory = ({ IsPage = true, prefernceContacts }) => {
No contact found
+ )} + {contacts?.length > 0 && currentItems.length === 0 && ( +No matching contact found
+ )} +No contact found
-No matching contact found
-No contact found
+No matching contact found
-