1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🐛 Set a default value for reduce

This commit is contained in:
Steffo 2021-10-19 20:49:36 +02:00
parent 0d9e84a87c
commit 0555c9a97e
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ export function GroupCreateBox({viewSet, resource}: GroupCreateBoxProps): JSX.El
return obj
}).reduce((a, b) => {
return {...a, ...b}
}),
}, {}),
[authorization, cache],
)

View file

@ -45,7 +45,7 @@ export function CacheProvider({children}: WithChildren): JSX.Element {
return obj
}).reduce((a, b) => {
return {...a, ...b}
})
}, {})
},
[users],
)