Fix error on reloading status detail column (#5248)

lolsob-rspec
K.SHIRAKASHI 2017-10-07 03:37:56 +09:00 committed by Eugen Rochko
parent 856863fe2f
commit 31501f47c5
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}