From 7fb8e0b1a97ed01cecf2ba8ce923e90e2c1e9255 Mon Sep 17 00:00:00 2001 From: "Patrick Lehner (he/him)" <1099818+lehnerpat@users.noreply.github.com> Date: Sun, 26 Jul 2026 23:57:23 +0900 Subject: [PATCH] fix: Clear InputLabelType item-id as null instead of empty string (#7950) --- frontend/app/components/global/InputLabelType.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/global/InputLabelType.vue b/frontend/app/components/global/InputLabelType.vue index eba29551a..2e5c42535 100644 --- a/frontend/app/components/global/InputLabelType.vue +++ b/frontend/app/components/global/InputLabelType.vue @@ -42,7 +42,7 @@ import { useSearch } from "~/composables/use-search"; const modelValue = defineModel({ default: () => null }); // support v-model:item-id binding -const itemId = defineModel("item-id", { default: undefined }); +const itemId = defineModel("item-id", { default: undefined }); const props = defineProps({ items: { @@ -81,7 +81,7 @@ const itemVal = computed({ return modelValue.value; }, set: (val) => { - itemId.value = val?.id || ""; + itemId.value = val?.id ?? null; modelValue.value = val; }, });