mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 18:40:12 -05:00
Fix error on reloading status detail column (#5248)
This commit is contained in:
parent
c75ca0525b
commit
d5f490b1a2
@ -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
Block a user