mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 21:21:21 +00:00
fix: datas of undefined
This commit is contained in:
parent
472177cc04
commit
8257a41bf6
@ -58,8 +58,8 @@ async function getSiteInfo({
|
|||||||
// }),
|
// }),
|
||||||
])
|
])
|
||||||
|
|
||||||
const categories = p1.datas
|
const categories = p1?.datas ?? []
|
||||||
const brands = p2.datas
|
const brands = p2?.datas ?? []
|
||||||
|
|
||||||
return {
|
return {
|
||||||
categories: categories.map((c: any) => ({
|
categories: categories.map((c: any) => ({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user