Scroll to detailed status when new ancestors get inserted

pull/839/head
Thibaut Girka 2018-11-30 12:27:19 +01:00 committed by ThibG
parent 31599ad91c
commit a10fee3c09
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ export default class Status extends ImmutablePureComponent {
} }
componentDidUpdate (prevProps) { componentDidUpdate (prevProps) {
if (this.props.params.statusId !== prevProps.params.statusId && this.props.params.statusId) { if (this.props.params.statusId && (this.props.params.statusId !== prevProps.params.statusId || prevProps.ancestorsIds.size < this.props.ancestorsIds.size)) {
const { status, ancestorsIds } = this.props; const { status, ancestorsIds } = this.props;
if (status && ancestorsIds && ancestorsIds.size > 0) { if (status && ancestorsIds && ancestorsIds.size > 0) {