0
0
Fork 0

Fix missing filtering on some notification types (#23211)

* Fix missing warning-type filtering on some notification types

* Fix missing hide-type filtering on some notification types
This commit is contained in:
Claire 2023-01-23 13:21:50 +01:00 committed by GitHub
parent 77c2ea1f0f
commit 98779535fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 4 deletions

View file

@ -24,7 +24,7 @@ const makeMapStateToProps = () => {
const notification = getNotification(state, props.notification, props.accountId);
return {
notification: notification,
status: notification.get('status') ? getStatus(state, { id: notification.get('status') }) : null,
status: notification.get('status') ? getStatus(state, { id: notification.get('status'), contextType: 'notifications' }) : null,
report: notification.get('report') ? getReport(state, notification.get('report'), notification.getIn(['report', 'target_account', 'id'])) : null,
};
};