Skip to content

Commit 80ecf31

Browse files
committed
🐛 fix $index
1 parent 8ab6894 commit 80ecf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formGenerator.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ div
1414
button(v-for='btn in field.buttons', @click='btn.onclick(model, field)', :class='btn.classes') {{ btn.label }}
1515
.hint(v-if='field.hint') {{ field.hint }}
1616
.errors(v-if='errorsVisibility(field)')
17-
span(v-for='error in field.errors', track-by='$index') {{ error }}
17+
span(v-for='(error, index) in field.errors', track-by='index') {{ error }}
1818
</template>
1919

2020
<script>

0 commit comments

Comments
 (0)