Fixed issue in Status page where status wont fetch on component update

• Fixed:
- issue in Status page where status wont fetch on component update
This commit is contained in:
mgabdev 2020-12-31 17:48:59 -05:00
parent 365cd86ab0
commit b129ce0f88
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ class Status extends ImmutablePureComponent {
if (prevProps.status !== status && !!status) {
this.shouldFetchStatusParts(status)
}
if (prevProps.statusId !== this.props.statusId && !this.props.status) {
this.props.onFetchStatus(this.props.statusId)
}
}
shouldFetchStatusParts = (status) => {