fix(ui) - saved search operator

This commit is contained in:
Shekar Siri 2022-04-08 19:23:59 +02:00
parent 7f806dda93
commit 1b0cc63e1f
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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,