fix: datas of undefined

This commit is contained in:
Gérard Le Cloerec 2021-04-09 10:40:42 +02:00
parent 472177cc04
commit 8257a41bf6

View File

@ -58,8 +58,8 @@ async function getSiteInfo({
// }),
])
const categories = p1.datas
const brands = p2.datas
const categories = p1?.datas ?? []
const brands = p2?.datas ?? []
return {
categories: categories.map((c: any) => ({