diff --git a/bundle.js b/bundle.js index 5a55bce..05a409f 100644 --- a/bundle.js +++ b/bundle.js @@ -452,7 +452,7 @@ async function idmGetHotspotData(query, graphFn){ body: graphFn ? graphFn(query) : IDM_PRODUCTS_GQL(query) }); const data = await res.json(); - const products = graphFn === IDM_HOTSPOTS_GQL ? data?.hotspots?.products : data?.data?.products?.products; + const products = graphFn === IDM_HOTSPOTS_GQL ? data?.data?.hotspots?.products : data?.data?.products?.products; if(!products) throw new Error(idmHotspotTextObject["Nie znaleziono produktów"]); console.log(data);