fix: view filter and group by types

This commit is contained in:
Daniel Lautzenheiser
2023-01-25 15:57:30 -05:00
parent f95625f20d
commit 71df89c81e
3 changed files with 19 additions and 3 deletions

View File

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