fix(symbol-manager): Select.Item empty string replaced with '__none__' placeholder
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 14m56s

This commit is contained in:
Pepe Ziberi
2026-05-21 08:16:20 +02:00
parent 40cea9a9be
commit 0d0d9a7257

View File

@@ -719,14 +719,14 @@ function SymbolCard({
{/* Category select */} {/* Category select */}
<Select <Select
value={sym.categoryId || ''} value={sym.categoryId || '__none__'}
onValueChange={onMoveCategory} onValueChange={(val) => onMoveCategory(val === '__none__' ? '' : val)}
> >
<SelectTrigger className="h-5 text-[10px] border-0 bg-transparent px-0 mt-0.5 hover:bg-muted/50 rounded"> <SelectTrigger className="h-5 text-[10px] border-0 bg-transparent px-0 mt-0.5 hover:bg-muted/50 rounded">
<SelectValue placeholder="Kategorie" /> <SelectValue placeholder="Kategorie" />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
<SelectItem value="">Ohne Kategorie</SelectItem> <SelectItem value="__none__">Ohne Kategorie</SelectItem>
{categories.map(c => ( {categories.map(c => (
<SelectItem key={c.id} value={c.id}>{c.name}</SelectItem> <SelectItem key={c.id} value={c.id}>{c.name}</SelectItem>
))} ))}