Skip to content

Commit ccc9ffe

Browse files
committed
use better check for the v-divider visibility
1 parent 46dae05 commit ccc9ffe

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/vue-vuetify/src/layouts/CategorizationStepperRenderer.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,14 @@
3535
<template v-slot:default="{ prev, next }">
3636
<v-stepper-header>
3737
<template
38-
v-for="entry in visibleCategoriesWithIndex"
38+
v-for="(entry, index) in visibleCategoriesWithIndex"
3939
:key="`${layout.path}-${entry.originalIndex}`"
4040
>
4141
<v-stepper-item :value="entry.originalIndex + 1" editable>
4242
{{ entry.category.value.label }}
4343
</v-stepper-item>
4444
<v-divider
45-
v-if="
46-
entry.originalIndex !==
47-
visibleCategoriesWithIndex[
48-
visibleCategoriesWithIndex.length - 1
49-
].originalIndex
50-
"
45+
v-if="index < visibleCategoriesWithIndex.length - 1"
5146
:key="`${layout.path}-divider-${entry.originalIndex}`"
5247
></v-divider>
5348
</template>

0 commit comments

Comments
 (0)