From 935bf3894f57552dda37d46349f0ecf7e865f0af Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Tue, 26 Jan 2021 17:28:03 +0100 Subject: [PATCH] show ICstatus props in JSONview #265 --- src/ic/ic-dialog.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index c7b4551..1601bee 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -16,18 +16,9 @@ class ICDialog extends React.Component { this.state = { confirmCommand: false, command: '', - icStatus: {} }; } - static getDerivedStateFromProps(props, state){ - if(typeof props.icStatus !== 'undefined'){ - return {icStatus: props.icStatus} - } else { - return {} - } - } - onClose(canceled) { this.props.onClose(); } @@ -58,9 +49,6 @@ class ICDialog extends React.Component { render() { - let icStatus = this.state.icStatus; - delete icStatus['icID']; - let graphURL = "" if (this.props.ic.apiurl !== ""){ graphURL = this.props.ic.apiurl + "/graph.svg" @@ -83,7 +71,7 @@ class ICDialog extends React.Component {
Status: