fix(front): remove faulty attributes to enable editing tags #2448 #2390

This commit is contained in:
Flupsi 2025-06-05 18:35:55 +02:00
parent 703ede9ba5
commit 5351ef0172
1 changed files with 2 additions and 3 deletions

View File

@ -303,17 +303,16 @@ const resetField = (fieldId: string) => {
</attachment-input>
</template>
<template v-else-if="fieldConfig.type === 'tags'">
<!-- TODO: Make Tags work -->
<Pills
:id="fieldConfig.id"
ref="tags"
:get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,
others: [],
currents: (values[fieldConfig.id] as string[]).map(tag => ({ type: 'custom' as const, label: tag })),
})"
:label="fieldConfig.label"
required="fieldConfig.required"
:required="fieldConfig.required"
>
<Button
icon="bi-x"