about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-02-17 14:28:25 +0100
committerThibaut Girka <thib@sitedethib.com>2019-02-17 14:28:25 +0100
commite31fc2b458579fea3602e25a798d1f3cfcac2807 (patch)
tree67c9a6911be625bf3e10a65a1454f6631d08d93d /app/javascript/flavours/glitch/features
parentcac75e01b8ba840ddfd09bc6ba1539a03d03880f (diff)
[Glitch] Fix crash on public hashtag pages when streaming fails
Port 041ff5fa9a45f7b8d1048a05a35611622b6f5fdb to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r--app/javascript/flavours/glitch/features/status/components/detailed_status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
index 8f49a9a30..120ae6817 100644
--- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js
+++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
@@ -98,7 +98,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
   }
 
   render () {
-    const status = this.props.status.get('reblog') ? this.props.status.get('reblog') : this.props.status;
+    const status = (this.props.status && this.props.status.get('reblog')) ? this.props.status.get('reblog') : this.props.status;
     const { expanded, onToggleHidden, settings } = this.props;
     const outerStyle = { boxSizing: 'border-box' };
     const { compact } = this.props;