Unverified Commit cfdbb36b authored by David Yip's avatar David Yip Committed by GitHub
Browse files

Merge pull request #519 from ThibG/glitch-soc/fixes/status-node-null

Prevent a rare crash when a status' root node is undefined
parents a641d1b5 893f2aff
......@@ -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