mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Remove added setState method in componentDidMount
This commit is contained in:
parent
fdaf8bd7ef
commit
01e5e30173
@ -87,15 +87,13 @@ class LifeCycle extends React.Component {
|
|||||||
const lifecycleSteps = Object.keys(lifeCycleConfig).map(config => {
|
const lifecycleSteps = Object.keys(lifeCycleConfig).map(config => {
|
||||||
return lifeCycleConfig[config];
|
return lifeCycleConfig[config];
|
||||||
});
|
});
|
||||||
|
let isPublished = this.checkReleaseLifeCycleStatus();
|
||||||
this.setState({
|
this.setState({
|
||||||
current: lifeCycleConfig[this.props.currentStatus].step,
|
current: lifeCycleConfig[this.props.currentStatus].step,
|
||||||
lifecycleSteps,
|
lifecycleSteps,
|
||||||
|
isPublished,
|
||||||
});
|
});
|
||||||
this.getLifeCycleHistory();
|
this.getLifeCycleHistory();
|
||||||
|
|
||||||
this.setState({
|
|
||||||
isPublished: this.checkReleaseLifeCycleStatus(),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState, snapshot) {
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user