Skip to content

Commit

Permalink
dont crash with null-ref (mastodon#12274)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinaloe authored and Gargron committed Nov 4, 2019
1 parent 3b609da commit 8568018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/mastodon/features/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ class SwitchingColumnsArea extends React.PureComponent {
}

setRef = c => {
this.node = c.getWrappedInstance();
if (c) {
this.node = c.getWrappedInstance();
}
}

render () {
Expand Down

0 comments on commit 8568018

Please sign in to comment.