mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🐛 Set a default value for reduce
This commit is contained in:
parent
0d9e84a87c
commit
0555c9a97e
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ export function GroupCreateBox({viewSet, resource}: GroupCreateBoxProps): JSX.El
|
|||
return obj
|
||||
}).reduce((a, b) => {
|
||||
return {...a, ...b}
|
||||
}),
|
||||
}, {}),
|
||||
[authorization, cache],
|
||||
)
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ export function CacheProvider({children}: WithChildren): JSX.Element {
|
|||
return obj
|
||||
}).reduce((a, b) => {
|
||||
return {...a, ...b}
|
||||
})
|
||||
}, {})
|
||||
},
|
||||
[users],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue