Commit 893f2aff authored by Thibaut Girka's avatar Thibaut Girka
Browse files

Prevent a rare crash when a status' root node is undefined

parent e396fbfe
......@@ -153,6 +153,11 @@ export default class Status extends ImmutablePureComponent {
} = 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 () {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment