From b8e790c3c22693271a4fd74ce34067c462ebf8a3 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 1 Nov 2020 16:25:02 +0100 Subject: [PATCH] Fix crash when viewing a profile with a filtered out pinned toot --- app/javascript/flavours/glitch/containers/status_container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/containers/status_container.js b/app/javascript/flavours/glitch/containers/status_container.js index ac423c58db..7782246a60 100644 --- a/app/javascript/flavours/glitch/containers/status_container.js +++ b/app/javascript/flavours/glitch/containers/status_container.js @@ -55,7 +55,7 @@ const makeMapStateToProps = () => { let account = undefined; let prepend = undefined; - if (props.featured) { + if (props.featured && status) { account = status.get('account'); prepend = 'featured'; } else if (reblogStatus !== null && typeof reblogStatus === 'object') {