Island: Do not set state from props in RansomwareReport
This commit is contained in:
parent
4d8258ddbd
commit
6622fc0ff5
|
@ -4,16 +4,8 @@ import ReportHeader, {ReportTypes} from './common/ReportHeader';
|
|||
import ReportLoader from './common/ReportLoader';
|
||||
|
||||
class RansomwareReport extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
report: props.report
|
||||
};
|
||||
}
|
||||
|
||||
stillLoadingDataFromServer() {
|
||||
return Object.keys(this.state.report).length === 0;
|
||||
return Object.keys(this.props.report).length === 0;
|
||||
}
|
||||
|
||||
generateReportContent() {
|
||||
|
|
Loading…
Reference in New Issue