const visibilityFilter = (state = 'SHOW_ALL', action) => {
  switch(action.type) {
    case 'SET_VISIBILITY_FILTER':
      return action.filter;
    default:
      return state;
  }
};

export default visibilityFilter;

const visibilityFilter = (state = 'SHOW_ALL', action) => {
  switch(action.type) {
    case 'ADD_ITEM':
      return 'SHOW_ALL';

    case 'SET_VISIBILITY_FILTER':
      return action.filter;

    default:
      return state;
  }
};

export default visibilityFilter;

Set viz-filter to SHOW_ALL when adding a new item
Set viz-filter to SHOW_ALL when adding a new item
