fix(ui) - reset date range on project change
This commit is contained in:
parent
6d61dc57b7
commit
79457430f7
1 changed files with 2 additions and 2 deletions
|
|
@ -288,9 +288,9 @@ export function fetchFilterSearch(params) {
|
|||
}
|
||||
|
||||
export const clearSearch = () => (dispatch, getState) => {
|
||||
const filter = getState().getIn(['search', 'instance']);
|
||||
// const filter = getState().getIn(['search', 'instance']);
|
||||
// dispatch(applySavedSearch(new SavedFilter({})));
|
||||
dispatch(edit(new Filter({ startDate: filter.startDate, endDate: filter.endDate, rangeValue: filter.rangeValue, filters: [] })));
|
||||
dispatch(edit(new Filter({ filters: [] })));
|
||||
return dispatch({
|
||||
type: CLEAR_SEARCH,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue