Skip to content

Commit

Permalink
fix: remove unnecessary computed
Browse files Browse the repository at this point in the history
  • Loading branch information
timhanlon committed Jan 8, 2025
1 parent 52e5d35 commit 1b83aca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime/pages/story-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useStory } from '../composables/useStory'
import StoriesLayout from '../layouts/stories.vue'
import { useHead, useRoute } from '#imports'
const route = useRoute()
const { stories } = useStory()
const story = computed(() => stories[route.params.slug as string])
const story = stories[route.params.slug as string]
useHead({
title: story.value?.pascalName,
title: story ? story.pascalName : 'Story Not Found',
})
</script>

Expand Down

0 comments on commit 1b83aca

Please sign in to comment.