Skip to content
Snippets Groups Projects
Commit d5f490b1 authored by K.SHIRAKASHI's avatar K.SHIRAKASHI Committed by Eugen Rochko
Browse files

Fix error on reloading status detail column (#5248)

parent c75ca052
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment