Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Clear filters on read filter change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhathaway committed Jan 1, 2017
1 parent 479c2c8 commit 6ba5719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/View/Components/NotificationFilters/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { dispatch } from 'Helpers/State/Store';
import { createGitHubNotificationFilterSet } from 'Helpers/Models/GitHubNotificationFilterSet';

import {
clearFilters,
setReadFilter,
addReasonFilter,
removeReasonFilter,
Expand Down Expand Up @@ -39,6 +40,7 @@ class NotificationFilters extends React.Component<INotificationFiltersProps, any
{
handleReadFilterClick()
{
dispatch(clearFilters(this.props.accountId));
dispatch(setReadFilter(this.props.accountId, this.props.notificationFilters.read
? false
: true));
Expand Down

0 comments on commit 6ba5719

Please sign in to comment.