Skip to content

Commit 25753ea

Browse files
committed
update code
1 parent b697533 commit 25753ea

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/pages/home/report/ReportActionsList.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,15 @@ function ReportActionsList({
429429
}
430430
const index = sortedVisibleReportActions.findIndex((item) => keyExtractor(item) === action?.reportActionID);
431431
if (action?.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW) {
432-
if (action?.reportActionID) {
433-
setActionIdHighlightedTemporary(action?.reportActionID);
434-
}
435432
if (index > 0) {
436433
setTimeout(() => {
437434
reportScrollManager.scrollToIndex(index);
438435
}, 100);
436+
} else {
437+
reportScrollManager.scrollToBottom();
438+
}
439+
if (action?.reportActionID) {
440+
setActionIdHighlightedTemporary(action.reportActionID);
439441
}
440442
} else {
441443
reportScrollManager.scrollToBottom();

0 commit comments

Comments
 (0)