File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import usePrevious from './usePrevious';
77
88function usePriorityMode ( ) {
99 const [ priorityMode ] = useOnyx ( ONYXKEYS . NVP_PRIORITY_MODE , { canBeMissing : true } ) ;
10- const [ allReportsWithDraftComments ] = useOnyx ( ONYXKEYS . NVP_DRAFT_REPORT_COMMENTS , { canBeMissing : true } ) ;
10+ const [ allReportsWithDraftComments ] = useOnyx ( ONYXKEYS . COLLECTION . REPORT_DRAFT_COMMENT , { canBeMissing : true } ) ;
1111 const prevPriorityMode = usePrevious ( priorityMode ) ;
1212
1313 useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ function getOnyxDataForOpenOrReconnect(
315315 // This ensures that any report with a draft comment is preserved in Onyx even if it doesn’t contain chat history
316316 const reportsWithDraftComments = Object . entries ( allReportsWithDraftComments ?? { } )
317317 . filter ( ( [ , value ] ) => value !== null )
318- . map ( ( [ key ] ) => key . replace ( ONYXKEYS . NVP_DRAFT_REPORT_COMMENTS , '' ) )
318+ . map ( ( [ key ] ) => key . replace ( ONYXKEYS . COLLECTION . REPORT_DRAFT_COMMENT , '' ) )
319319 . map ( ( reportID ) => allReports ?. [ `${ ONYXKEYS . COLLECTION . REPORT } ${ reportID } ` ] ) ;
320320
321321 reportsWithDraftComments ?. forEach ( ( report ) => {
You can’t perform that action at this time.
0 commit comments