Prevent a rare crash when a status' root node is undefined
This commit is contained in:
		@@ -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 () {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user