diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js index 1b4203daea..1d5fbcb427 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js @@ -148,6 +148,11 @@ class LifeCycle extends React.Component { render() { const {currentStatus, lifecycle, selectedStatus} = this.state; const selectedValue = selectedStatus == null ? [] : selectedStatus; + let proceedingStates = []; + if((lifecycle.hasOwnProperty(currentStatus)) && lifecycle[currentStatus].hasOwnProperty("proceedingStates")){ + proceedingStates = lifecycle[currentStatus].proceedingStates; + } + console.log(lifecycle); return (
Manage Lifecycle @@ -169,11 +174,9 @@ class LifeCycle extends React.Component { value={selectedValue} showSearch={true} > - { - Object.keys(lifecycle).map(lifecycleState => { + {proceedingStates.map(lifecycleState => { return (