From 7145590b7c6cef9ce31545d2626d2dc575a9d41c Mon Sep 17 00:00:00 2001 From: nam-singh Date: Thu, 12 Sep 2024 14:14:36 +0530 Subject: [PATCH] set initial expand true and change filter order --- report-react/src/SavedReport.tsx | 32 +++++++++++++-------------- report-react/src/report/ReportRow.tsx | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/report-react/src/SavedReport.tsx b/report-react/src/SavedReport.tsx index 692223452..4e3032368 100644 --- a/report-react/src/SavedReport.tsx +++ b/report-react/src/SavedReport.tsx @@ -208,7 +208,22 @@ const filteredReport = { {total} issues found
- { + // set state + this.setState({ reportViewState: evt.selectedItem }); + }} + /> + }) => this.handleFilterChange(event.selectedItems)} - /> - { - // set state - this.setState({ reportViewState: evt.selectedItem }); - }} />
diff --git a/report-react/src/report/ReportRow.tsx b/report-react/src/report/ReportRow.tsx index d335efe2d..bcbad4e55 100644 --- a/report-react/src/report/ReportRow.tsx +++ b/report-react/src/report/ReportRow.tsx @@ -47,7 +47,7 @@ export default class ReportRow extends React.Component = React.createRef(); state: IReportRowState = { - expanded: false, + expanded: true, lastTimestamp: this.props.report.timestamp, scrollTo: false };