fix: use AcceptableValue type for Select update handler

The Select component's @update:model-value callback expects
AcceptableValue (string | number | null), not string.
This commit is contained in:
yavon007
2026-05-03 20:44:29 +08:00
parent 8106b6370c
commit 2bd7d1be1a
@@ -422,7 +422,7 @@ watch(open, (value) => {
v-else-if="indexTypeOptions.length > 0"
:model-value="index.indexType || 'BTREE'"
:disabled="index.markedForDrop"
@update:model-value="(v: string) => index.indexType = v"
@update:model-value="(v: any) => index.indexType = String(v ?? '')"
>
<SelectTrigger class="h-7 font-mono text-xs">
<SelectValue />