Browse Source

[Glitch] dont crash with null-ref

Port 8568018935 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
closed-social-glitch-2
Hinaloe 5 years ago
committed by Thibaut Girka
parent
commit
f940c5a1fb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/flavours/glitch/features/ui/index.js

+ 3
- 1
app/javascript/flavours/glitch/features/ui/index.js View File

@ -174,7 +174,9 @@ class SwitchingColumnsArea extends React.PureComponent {
}
setRef = c => {
this.node = c.getWrappedInstance();
if (c) {
this.node = c.getWrappedInstance();
}
}
render () {

Loading…
Cancel
Save