From a7d56acbf5e98f511d1a2d7b6a61a0f9d0429341 Mon Sep 17 00:00:00 2001 From: pgaca Date: Wed, 15 Oct 2025 11:11:52 +0200 Subject: [PATCH] graphFn === IDM_HOTSPOTS_GQL --- bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);