diff --git a/lib/alerts/actions/visibilityFilter.js b/lib/alerts/actions/visibilityFilter.js index 7d7caaf68..1a59856d0 100644 --- a/lib/alerts/actions/visibilityFilter.js +++ b/lib/alerts/actions/visibilityFilter.js @@ -15,7 +15,10 @@ export const setAlertSort = createAction( type: string }) => payload ) -export const setVisibilityFilter = createVoidPayloadAction('SET_ALERT_VISIBILITY_FILTER') +export const setVisibilityFilter = createAction( + 'SET_ALERT_VISIBILITY_FILTER', + (payload: string) => payload +) export const setVisibilitySearchText = createAction( 'SET_ALERT_VISIBILITY_SEARCH_TEXT', (payload: string) => payload diff --git a/lib/alerts/components/AlertsList.js b/lib/alerts/components/AlertsList.js index 20a809927..af2094580 100644 --- a/lib/alerts/components/AlertsList.js +++ b/lib/alerts/components/AlertsList.js @@ -36,7 +36,7 @@ type Props = { searchTextChanged: string => void, sortChanged: ({direction: string, type: string}) => void, visibilityFilter: AlertFilter, - visibilityFilterChanged: any => void + visibilityFilterChanged: string => void } export default class AlertsList extends Component {