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; }); });