change(ui) - session search - maintain the date on project change
This commit is contained in:
parent
5c4247885f
commit
5895a537c6
1 changed files with 11 additions and 3 deletions
|
|
@ -318,9 +318,17 @@ export function fetchFilterSearch(params) {
|
|||
}
|
||||
|
||||
export const clearSearch = () => (dispatch, getState) => {
|
||||
// const filter = getState().getIn(['search', 'instance']);
|
||||
// dispatch(applySavedSearch(new SavedFilter({})));
|
||||
dispatch(edit(new Filter({ filters: [] })));
|
||||
const instance = getState().getIn(['search', 'instance']);
|
||||
dispatch(
|
||||
edit(
|
||||
new Filter({
|
||||
rangeValue: instance.rangeValue,
|
||||
startDate: instance.startDate,
|
||||
endDate: instance.endDate,
|
||||
filters: [],
|
||||
})
|
||||
)
|
||||
);
|
||||
return dispatch({
|
||||
type: CLEAR_SEARCH,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue