Skip to content

Commit

Permalink
Merge pull request #1152 from dpc-sdp/bugfix/social-share-error
Browse files Browse the repository at this point in the history
fix(@dpc-sdp/nuxt-ripple): fix console error on route change
  • Loading branch information
dylankelly authored May 8, 2024
2 parents f0d550b + fab3b66 commit 2b6fb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt-ripple/components/TideSidebarSocialShare.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<script setup lang="ts">
import { inject } from 'vue'
import { useRoute } from 'vue-router'
import type {
IRplFeatureFlags,
TideSocialShare
Expand All @@ -23,9 +22,10 @@ interface Props {
const props = defineProps<Props>()
const route = useRoute()
const { $app_origin } = useNuxtApp()
const url = computed(() => `${$app_origin}${useRoute().path}`)
const url = computed(() => `${$app_origin}${route?.path}`)
const { socialShare: flags }: IRplFeatureFlags = inject('featureFlags', {})
Expand Down

0 comments on commit 2b6fb99

Please sign in to comment.