function GRIDDLE_SET_FILTER(state, action) {
  return state
    .set('filter', action.filter && Immutable.fromJS(action.filter))
    .setIn(['pageProperties', 'currentPage'], 1);
}
Sets the current filter
@param {Immutable} state - Immutable state object
@param {Object} action - the action object to work with