From d1d557ada13359c7324468f2a7b6e737e3b9cb0f Mon Sep 17 00:00:00 2001 From: Simon Pichugin Date: Aug 20 2020 08:32:59 +0000 Subject: Issue 51229 - Server Settings page gets into an unresponsive state Bug Description: If we switch the tab in Cockpit UI and restart the instance - we can't go back to the default tab as it's in an unresponsive loading state. Fix Description: Do the update on ComponentDidUpdate instead of ComponentDidMount. https://pagure.io/389-ds-base/issue/51229 Reviewed by: mreynolds (Thanks!) --- diff --git a/src/cockpit/389-console/src/server.jsx b/src/cockpit/389-console/src/server.jsx index 98cceb6..27193b7 100644 --- a/src/cockpit/389-console/src/server.jsx +++ b/src/cockpit/389-console/src/server.jsx @@ -35,7 +35,7 @@ export class Server extends React.Component { this.selectNode = this.selectNode.bind(this); } - componentDidMount() { + componentDidUpdate() { if (this.props.wasActiveList.includes(1)) { if (this.state.firstLoad) { this.loadConfig();