fix(front): tell `Vue` to update the Pills when tags are reset

This commit is contained in:
Flupsi 2025-06-05 19:18:38 +02:00
parent 6ab6282435
commit b3070a7829
1 changed files with 2 additions and 0 deletions

View File

@ -304,7 +304,9 @@ const resetField = (fieldId: string) => {
</template>
<template v-else-if="fieldConfig.type === 'tags'">
<Pills
v-for="version in [JSON.stringify(values[fieldConfig.id])]"
:id="fieldConfig.id"
:key="version"
:get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,