mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-15 03:15:32 +00:00
Prevent a rare crash when a status' root node is undefined
This commit is contained in:
parent
e396fbfe3b
commit
893f2aff20
|
@ -153,6 +153,11 @@ export default class Status extends ImmutablePureComponent {
|
||||||
muted,
|
muted,
|
||||||
prepend,
|
prepend,
|
||||||
} = this.props;
|
} = 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']);
|
const autoCollapseSettings = settings.getIn(['collapsed', 'auto']);
|
||||||
|
|
||||||
if (function () {
|
if (function () {
|
||||||
|
|
Loading…
Reference in a new issue