Skip to content

Commit

Permalink
⚡ Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itt828 committed Feb 10, 2024
1 parent 235a6be commit 3d035dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/lib/params.ts

This file was deleted.

6 changes: 2 additions & 4 deletions src/pages/EventDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<script setup lang="ts">
import MySchedule from '/@/features/event/components/MySchedule.vue'
import { computed } from 'vue'
import { ComputedRef, computed } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { getFirstParam } from '../lib/params'
import { fetchEvent } from '../features/event/api'
Expand All @@ -41,9 +41,7 @@ import { Schedule } from '/@/features/event/types'
const route = useRoute()
const router = useRouter()
const eventId = computed(() => {
return getFirstParam(route.params.id)
})
const eventId: ComputedRef<string> = computed(() => route.params.id as string)
const { event, error, mutate, state } = fetchEvent(eventId.value)
const { me } = useMe()
Expand Down

0 comments on commit 3d035dc

Please sign in to comment.