Skip to content

Commit 4d7f1a2

Browse files
committed
Update AutoUis.vue
1 parent edd96fb commit 4d7f1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MyApp.Client/src/components/AutoUis.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const isAutoPlaying = ref(true)
126126
const direction = ref<'left' | 'right'>('right')
127127
let intervalId: number | null = null
128128
129-
const currentSlide = computed(() => slides[currentIndex.value] || slides[0])
129+
const currentSlide = computed((): Slide => slides[currentIndex.value] ?? slides[0]!)
130130
131131
const goToNext = () => {
132132
direction.value = 'right'

0 commit comments

Comments
 (0)