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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 14m56s
This commit is contained in:
@@ -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>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user