From 68052996fdc065e73f9c8854a36f2e1c4c46c0c8 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Mon, 7 Oct 2024 01:20:30 -0400 Subject: [PATCH] Fix loading for branding for undefined --- src/stores/brandingStore.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/stores/brandingStore.js b/src/stores/brandingStore.js index e54cabf..3e0f04d 100644 --- a/src/stores/brandingStore.js +++ b/src/stores/brandingStore.js @@ -9,7 +9,7 @@ export const useBrandingStore = defineStore( () => { const currentBrand = ref('') - + const value = useSessionStorage( 'branding', {}, @@ -24,11 +24,11 @@ export const useBrandingStore = defineStore( watch( () => route.params.creator, async () => { - console.log(`creator: ${route.params.creator}`) - console.log(`currentBrand: ${currentBrand.value}`) if (route.params.creator !== currentBrand.value) { - await fetchCreatorData(route.params.creator); - currentBrand.value = route.params.creator + if (route.params.creator !== undefined) { + await fetchCreatorData(route.params.creator) + currentBrand.value = route.params.creator + } } } )