Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/pages/PrivateNotes/PrivateNotesListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type NoteListItem = {
function PrivateNotesListPage({report, accountID: sessionAccountID}: PrivateNotesListPageProps) {
const route = useRoute<PlatformStackRouteProp<PrivateNotesNavigatorParamList, typeof SCREENS.PRIVATE_NOTES.LIST>>();
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}), []);
Expand Down Expand Up @@ -88,10 +88,7 @@ function PrivateNotesListPage({report, accountID: sessionAccountID}: PrivateNote
}, [report, personalDetailsList, sessionAccountID, translate, backTo]);

return (
<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={PrivateNotesListPage.displayName}
>
<ScreenWrapper testID={PrivateNotesListPage.displayName}>
<HeaderWithBackButton
title={translate('privateNotes.title')}
shouldShowBackButton
Expand Down