diff --git a/src/hooks/useDirectory.js b/src/hooks/useDirectory.js index 7ec08c4b..1c0c3433 100644 --- a/src/hooks/useDirectory.js +++ b/src/hooks/useDirectory.js @@ -136,7 +136,7 @@ export const useContactNotes = (id, IsActive) => { useEffect(() => { const cached = getCachedData("Contact Notes"); if (!cached || cached.contactId !== id) { - fetchContactNotes(id,IsActive); + id && fetchContactNotes(id,IsActive); } else { setContactNotes(cached.data); }