Fix notification filter selection after settings change (#39872)
This commit is contained in:
1 parent
01a6b3aece
commit
87d99b17cc
1 file changed
+1
-1
+1
-1
@@ -44,7 +44,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
}
|
||||
} else if (path[0] === 'quickFilter') {
|
||||
dispatch(changeSetting(['notifications', ...path], checked));
|
||||
dispatch(setNotificationsFilter('all'));
|
||||
dispatch(setNotificationsFilter({ filterType: 'all' }));
|
||||
} else if (path[0] === 'alerts' && checked && typeof window.Notification !== 'undefined' && Notification.permission !== 'granted') {
|
||||
if (checked && typeof window.Notification !== 'undefined' && Notification.permission !== 'granted') {
|
||||
dispatch(requestBrowserPermission((permission) => {
|
||||
|
||||
Reference in new issue
Block a user