From 73e2246a20be2cb4bd3e94cea6fc21e5e032294a Mon Sep 17 00:00:00 2001 From: Jayasanka Weerasinghe Date: Wed, 15 Jan 2020 05:25:33 +0530 Subject: [PATCH] Remove unwanted app release api call from APPM UIs --- .../react-app/src/pages/dashboard/apps/release/Release.js | 7 ------- .../react-app/src/pages/dashboard/apps/release/Release.js | 8 -------- 2 files changed, 15 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/release/Release.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/release/Release.js index fc653d7bf4..ba3bf141ef 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/release/Release.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/release/Release.js @@ -56,13 +56,6 @@ class Release extends React.Component { } - componentDidUpdate(prevProps, prevState, snapshot) { - if (prevState.uuid !== this.state.uuid) { - const {uuid} = this.props.match.params; - this.fetchData(uuid); - } - } - changeCurrentLifecycleStatus = (status) => { this.setState({ currentLifecycleStatus: status diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js index a8ad2a6bcd..ac599f14e6 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js @@ -49,14 +49,6 @@ class Release extends React.Component { this.props.changeSelectedMenuItem(deviceType); } - componentDidUpdate(prevProps, prevState, snapshot) { - if (prevState.uuid !== this.state.uuid) { - const { uuid, deviceType } = this.props.match.params; - this.fetchData(uuid); - this.props.changeSelectedMenuItem(deviceType); - } - } - fetchData = uuid => { const config = this.props.context;