From 7951052ce368436e6b0537338fa86afdd7705887 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Fri, 16 Feb 2024 17:27:20 +0100 Subject: [PATCH] fix --- resources/js/Pages/IkeaRoot.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index d7cb48f..1b3137a 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -97,7 +97,7 @@ const tproducts = computed(() => { prod.calcPrice = Math.round(prod.calcPrice * currencyCoef.value * 100) / 100; prod.rate = currencyHash.value[prod.currency]; - if (prod.tag.length > 1) prod.tag = prod.tag.replace(/_/g, " "); + if (prod.tag != null && prod.tag.length > 1) prod.tag = prod.tag.replace(/_/g, " "); return prod; }); });