diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-27 02:10:54 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-10-28 19:24:02 +0200 |
commit | ce27c6502bc439acda8ad89a4c5386698dbf82c0 (patch) | |
tree | 0e733bd9ac7f92f2bf3439c5c11d7a951067eb45 /app/javascript/flavours | |
parent | 5dfb7ba35cce50c38be9aa2b935919f6462bb619 (diff) |
[Glitch] Fix notifications about deleted reports not being also deleted
Port d2eb726962187226c85ef7f2ee1886cb0767bbd1 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/features/notifications/components/admin_report.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/components/admin_report.js b/app/javascript/flavours/glitch/features/notifications/components/admin_report.js index 80beeb9da..4662bd953 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/admin_report.js +++ b/app/javascript/flavours/glitch/features/notifications/components/admin_report.js @@ -69,6 +69,10 @@ export default class AdminReport extends ImmutablePureComponent { render () { const { intl, account, notification, unread, report } = this.props; + if (!report) { + return null; + } + // Links to the display name. const displayName = account.get('display_name_html') || account.get('username'); const link = ( |