From 95f6199ceaced276e743b051c430ef7c04b6b538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Tue, 6 Oct 2026 02:46:42 +0200 Subject: [PATCH] Render admin field keys as labels --- app/components/Admin/ModalForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Admin/ModalForm.vue b/app/components/Admin/ModalForm.vue index ba19536..1085477 100644 --- a/app/components/Admin/ModalForm.vue +++ b/app/components/Admin/ModalForm.vue @@ -130,13 +130,13 @@ watch( " v-model:value="localItem[field.key]" :fetch-options="field.fetchOptions" - :label="field.label || field.key" + :label="field.label || String(field.key)" :predefined="props.item?.[field.key]" :multiple="field.type == 'search-select-array'" /> @@ -144,7 +144,7 @@ watch( v-else :type="field.type" :key="field.key" - :label="field.label || field.key" + :label="field.label || String(field.key)" v-model:value="localItem[field.key]" :textarea="field.type == 'textarea'" :rows="field.type == 'textarea' ? field.rows : 0"