Scroll to detailed status when new ancestors get inserted
This commit is contained in:
parent
5a03b30f13
commit
8117ba2cb1
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ export default class Status extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
if (status && ancestorsIds && ancestorsIds.size > 0) {
|
||||
|
|
Loading…
Reference in a new issue