diff --git a/src/pages/PrivateNotes/PrivateNotesListPage.tsx b/src/pages/PrivateNotes/PrivateNotesListPage.tsx index ef0a988a176d..d5a31c3c0672 100644 --- a/src/pages/PrivateNotes/PrivateNotesListPage.tsx +++ b/src/pages/PrivateNotes/PrivateNotesListPage.tsx @@ -40,7 +40,7 @@ type NoteListItem = { function PrivateNotesListPage({report, accountID: sessionAccountID}: PrivateNotesListPageProps) { const route = useRoute>(); const backTo = route.params.backTo; - const [personalDetailsList] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST); + const [personalDetailsList] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {canBeMissing: false}); const styles = useThemeStyles(); const {translate} = useLocalize(); const getAttachmentValue = useCallback((item: NoteListItem) => ({reportID: item.reportID, accountID: Number(item.accountID), type: CONST.ATTACHMENT_TYPE.NOTE}), []); @@ -88,10 +88,7 @@ function PrivateNotesListPage({report, accountID: sessionAccountID}: PrivateNote }, [report, personalDetailsList, sessionAccountID, translate, backTo]); return ( - +