Fix error on reloading status detail column (#5248)

signup-info-prompt
K.SHIRAKASHI 2017-10-07 03:37:56 +09:00 committed by Eugen Rochko
parent c75ca0525b
commit d5f490b1a2
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ export default class Status extends ImmutablePureComponent {
componentDidUpdate () { componentDidUpdate () {
const { ancestorsIds } = this.props; const { ancestorsIds } = this.props;
if (ancestorsIds) { if (ancestorsIds && ancestorsIds.size > 0) {
const element = this.node.querySelectorAll('.focusable')[this.props.ancestorsIds.size]; const element = this.node.querySelectorAll('.focusable')[ancestorsIds.size];
element.scrollIntoView(); element.scrollIntoView();
} }
} }