From 439d26e1929dc5aa8a609965eeafc8f36f1cb760 Mon Sep 17 00:00:00 2001 From: daledah Date: Thu, 5 Jun 2025 23:17:31 +0700 Subject: [PATCH 1/2] fix: add padding bottom for private notes list page --- src/pages/PrivateNotes/PrivateNotesListPage.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/PrivateNotes/PrivateNotesListPage.tsx b/src/pages/PrivateNotes/PrivateNotesListPage.tsx index ef0a988a176d..7d1b9b9f86d7 100644 --- a/src/pages/PrivateNotes/PrivateNotesListPage.tsx +++ b/src/pages/PrivateNotes/PrivateNotesListPage.tsx @@ -88,10 +88,7 @@ function PrivateNotesListPage({report, accountID: sessionAccountID}: PrivateNote }, [report, personalDetailsList, sessionAccountID, translate, backTo]); return ( - + Date: Thu, 5 Jun 2025 23:30:10 +0700 Subject: [PATCH 2/2] fix: lint --- src/pages/PrivateNotes/PrivateNotesListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/PrivateNotes/PrivateNotesListPage.tsx b/src/pages/PrivateNotes/PrivateNotesListPage.tsx index 7d1b9b9f86d7..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}), []);