Skip to content

Commit

Permalink
ADM-1007 [frontend]: fix the bug ahout previous button in the report …
Browse files Browse the repository at this point in the history
…summary page
  • Loading branch information
zhou-yinyuan committed Sep 29, 2024
1 parent 2a2123f commit ace4fc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/containers/ReportStep/ReportContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,11 @@ const ReportContent = (props: ReportContentProps) => {
setPageType(REPORT_PAGE_TYPE.SUMMARY);
} else {
setDisplayType(DISPLAY_TYPE.CHART);
setPageType(REPORT_PAGE_TYPE.BOARD_CHART);
if (shouldShowBoardMetricsChart) {
setPageType(REPORT_PAGE_TYPE.BOARD_CHART);
} else {
setPageType(REPORT_PAGE_TYPE.DORA_CHART);
}
}
};

Expand Down

0 comments on commit ace4fc2

Please sign in to comment.