Fix Shop product data finding

Use location slug from API product
This commit is contained in:
2021-11-10 23:10:18 +01:00
parent 17af949e8e
commit b0e4351b05

View File

@@ -237,7 +237,7 @@
}
// Define current product
const product = results.find((result: any) => result.slug.includes(page.params.name))
const product = results.find((result: any) => result.slug.includes(productAPI.location.slug))
if (product) {
shopProduct = product
}
@@ -259,4 +259,4 @@
}
}
}
</script>
</script>