Fix error on reloading status detail column (#5248)
parent
856863fe2f
commit
31501f47c5
|
@ -242,8 +242,8 @@ export default class Status extends ImmutablePureComponent {
|
|||
componentDidUpdate () {
|
||||
const { ancestorsIds } = this.props;
|
||||
|
||||
if (ancestorsIds) {
|
||||
const element = this.node.querySelectorAll('.focusable')[this.props.ancestorsIds.size];
|
||||
if (ancestorsIds && ancestorsIds.size > 0) {
|
||||
const element = this.node.querySelectorAll('.focusable')[ancestorsIds.size];
|
||||
element.scrollIntoView();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue