From e836f8479682660f085abfe495aefd8620a66237 Mon Sep 17 00:00:00 2001 From: Sam Sciolla Date: Tue, 14 Feb 2023 14:42:01 -0500 Subject: [PATCH] Remove ContentPage.getDerviedStateFromProps --- assets/js/Components/ContentPage.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/assets/js/Components/ContentPage.js b/assets/js/Components/ContentPage.js index 38b4d5cfc..78390795a 100644 --- a/assets/js/Components/ContentPage.js +++ b/assets/js/Components/ContentPage.js @@ -77,17 +77,6 @@ class ContentPage extends React.Component { } } - static getDerivedStateFromProps(props, state) { - const stateActiveIssue = state.activeIssue - const propsActiveIssue = stateActiveIssue && props.report.issues[stateActiveIssue.id] - if(propsActiveIssue && propsActiveIssue.status !== stateActiveIssue.status) { - return { - activeIssue: propsActiveIssue - } - } - return null - } - handleSearchTerm = (e, val) => { this.setState({searchTerm: val, filteredIssues: [], tableSettings: Object.assign({}, this.state.tableSettings, {pageNum: 0})}); }