From 5d1300acd76101b40b33daa45ac626d36a558664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20V=C3=ADtov=C3=A1?= Date: Tue, 5 Nov 2024 10:41:37 +0200 Subject: [PATCH] Wizard: check before accessing undefined property --- .../CreateImageWizard/steps/Packages/PackageRecommendations.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx b/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx index 4253daa88..33829929b 100644 --- a/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx +++ b/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx @@ -77,7 +77,7 @@ const PackageRecommendations = () => { }, }); - if (response && response.data && response.data.packages.length > 0) { + if (response && response.data && response.data.packages && response.data.packages.length > 0) { analytics.track( `${AMPLITUDE_MODULE_NAME}-packageRecommendationsShown`, {