Fix current location in switcher on Product page
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { PageData } from './$types'
|
||||
import { getContext } from 'svelte'
|
||||
import { shopCurrentProductSlug } from '$utils/stores/shop'
|
||||
import { capitalizeFirstLetter } from '$utils/functions'
|
||||
// Components
|
||||
import PageTransition from '$components/PageTransition.svelte'
|
||||
@@ -12,6 +13,8 @@
|
||||
export let data: PageData
|
||||
|
||||
const { posters } = getContext('shop')
|
||||
|
||||
$shopCurrentProductSlug = data.product.location.slug
|
||||
</script>
|
||||
|
||||
<Metas
|
||||
|
||||
Reference in New Issue
Block a user