Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Haelwenn
glitchsoc-fe
Commits
893f2aff
Commit
893f2aff
authored
May 26, 2018
by
Thibaut Girka
Browse files
Prevent a rare crash when a status' root node is undefined
parent
e396fbfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/javascript/flavours/glitch/components/status.js
View file @
893f2aff
...
...
@@ -153,6 +153,11 @@ export default class Status extends ImmutablePureComponent {
muted
,
prepend
,
}
=
this
.
props
;
// Prevent a crash when node is undefined. Not completely sure why this
// happens, might be because status === null.
if
(
node
===
undefined
)
return
;
const
autoCollapseSettings
=
settings
.
getIn
([
'
collapsed
'
,
'
auto
'
]);
if
(
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment