diff --git a/frontend/src/components/group/GroupCreateBox.tsx b/frontend/src/components/group/GroupCreateBox.tsx index ea501cc..40a9cf5 100644 --- a/frontend/src/components/group/GroupCreateBox.tsx +++ b/frontend/src/components/group/GroupCreateBox.tsx @@ -93,7 +93,7 @@ export function GroupCreateBox({viewSet, resource}: GroupCreateBoxProps): JSX.El return obj }).reduce((a, b) => { return {...a, ...b} - }), + }, {}), [authorization, cache], ) diff --git a/frontend/src/contexts/cache.tsx b/frontend/src/contexts/cache.tsx index 58749cd..ffbb27d 100644 --- a/frontend/src/contexts/cache.tsx +++ b/frontend/src/contexts/cache.tsx @@ -45,7 +45,7 @@ export function CacheProvider({children}: WithChildren): JSX.Element { return obj }).reduce((a, b) => { return {...a, ...b} - }) + }, {}) }, [users], )