[Glitch] Fix notifications about deleted reports not being also deleted

Port 35b5120c5d to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
Eugen Rochko 2 years ago committed by Claire
parent 358012fefd
commit 62ab234587

@ -69,6 +69,10 @@ export default class AdminReport extends ImmutablePureComponent {
render () { render () {
const { intl, account, notification, unread, report } = this.props; const { intl, account, notification, unread, report } = this.props;
if (!report) {
return null;
}
// Links to the display name. // Links to the display name.
const displayName = account.get('display_name_html') || account.get('username'); const displayName = account.get('display_name_html') || account.get('username');
const link = ( const link = (

Loading…
Cancel
Save