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:
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
|
return obj
|
||||||
}).reduce((a, b) => {
|
}).reduce((a, b) => {
|
||||||
return {...a, ...b}
|
return {...a, ...b}
|
||||||
}),
|
}, {}),
|
||||||
[authorization, cache],
|
[authorization, cache],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ export function CacheProvider({children}: WithChildren): JSX.Element {
|
||||||
return obj
|
return obj
|
||||||
}).reduce((a, b) => {
|
}).reduce((a, b) => {
|
||||||
return {...a, ...b}
|
return {...a, ...b}
|
||||||
})
|
}, {})
|
||||||
},
|
},
|
||||||
[users],
|
[users],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue