From ce604a63330b6a7b30b5a6694b8fb15570bed014 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Sat, 24 May 2025 20:46:38 +0330 Subject: [PATCH] added slug as combobox values --- frontend/components/global/ComboBox.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/components/global/ComboBox.vue b/frontend/components/global/ComboBox.vue index 42a3718..14b7b9c 100644 --- a/frontend/components/global/ComboBox.vue +++ b/frontend/components/global/ComboBox.vue @@ -4,10 +4,12 @@ type OptionChildren = { id: number | string; name: string; + slug: string; }; type Option = { name: string; + slug: string; children: OptionChildren[]; }; @@ -39,7 +41,7 @@ watch( () => value.value, (newValue) => { if (!!newValue) { - emit("update:modelValue", newValue.id); + emit("update:modelValue", newValue.slug); } } );