fix(ui) - saved search operator
This commit is contained in:
parent
7f806dda93
commit
1b0cc63e1f
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ function reducer(state = initialState, action = {}) {
|
|||
return state.set("instance", action.data);
|
||||
case success(FETCH_LIST):
|
||||
const { data } = action;
|
||||
return state.set("list", List(data.map(SavedFilter)));
|
||||
return state.set("list", List(data.map(SavedFilter)).sortBy(i => i.searchId));
|
||||
case success(FETCH_FILTER_SEARCH):
|
||||
const groupedList = action.data.reduce((acc, item) => {
|
||||
const { projectId, type, value } = item;
|
||||
|
|
|
|||
|
|
@ -140,8 +140,8 @@ export default Record({
|
|||
}
|
||||
}
|
||||
return {
|
||||
...filter,
|
||||
..._filter,
|
||||
...filter,
|
||||
key: _filter.key,
|
||||
type: _filter.type, // camelCased(filter.type.toLowerCase()),
|
||||
value: value.length === 0 || !value ? [""] : value,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue