fix: view filter and group by types
This commit is contained in:
@ -405,6 +405,10 @@ function entries(
|
||||
const payload = action.payload;
|
||||
const { collection, filter: viewFilter } = payload;
|
||||
|
||||
if (!viewFilter.id) {
|
||||
return state;
|
||||
}
|
||||
|
||||
const filter = {
|
||||
...state.filter,
|
||||
};
|
||||
@ -434,6 +438,10 @@ function entries(
|
||||
const payload = action.payload;
|
||||
const { collection, filter: viewFilter } = payload;
|
||||
|
||||
if (!viewFilter.id) {
|
||||
return state;
|
||||
}
|
||||
|
||||
const filter = {
|
||||
...state.filter,
|
||||
};
|
||||
@ -468,6 +476,10 @@ function entries(
|
||||
const payload = action.payload;
|
||||
const { collection, group: groupBy } = payload;
|
||||
|
||||
if (!groupBy.id) {
|
||||
return state;
|
||||
}
|
||||
|
||||
const group = {
|
||||
...state.group,
|
||||
};
|
||||
@ -494,6 +506,10 @@ function entries(
|
||||
const payload = action.payload;
|
||||
const { collection, group: groupBy } = payload;
|
||||
|
||||
if (!groupBy.id) {
|
||||
return state;
|
||||
}
|
||||
|
||||
const group = {
|
||||
...state.group,
|
||||
};
|
||||
|
Reference in New Issue
Block a user