Island: Do not set state from props in RansomwareReport

This commit is contained in:
Mike Salvatore 2021-07-06 10:10:33 -04:00
parent 4d8258ddbd
commit 6622fc0ff5
1 changed files with 1 additions and 9 deletions

View File

@ -4,16 +4,8 @@ import ReportHeader, {ReportTypes} from './common/ReportHeader';
import ReportLoader from './common/ReportLoader'; import ReportLoader from './common/ReportLoader';
class RansomwareReport extends React.Component { class RansomwareReport extends React.Component {
constructor(props) {
super(props);
this.state = {
report: props.report
};
}
stillLoadingDataFromServer() { stillLoadingDataFromServer() {
return Object.keys(this.state.report).length === 0; return Object.keys(this.props.report).length === 0;
} }
generateReportContent() { generateReportContent() {