mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-26 15:34:26 +00:00
fix(web): remove discard option from event target selector
Unorchestrated events are discarded by default, so an explicit discard target is redundant. Drop the discard CommandGroup (and the now-unused CommandSeparator import); the currentLabel() discard branch is kept so any pre-existing discard bindings still render correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,6 @@ import {
|
||||
CommandInput,
|
||||
CommandItem,
|
||||
CommandList,
|
||||
CommandSeparator,
|
||||
} from '@/components/ui/command';
|
||||
import {
|
||||
Select,
|
||||
@@ -293,20 +292,6 @@ function TargetCombobox({
|
||||
))}
|
||||
</CommandGroup>
|
||||
)}
|
||||
<CommandSeparator />
|
||||
<CommandGroup>
|
||||
<CommandItem
|
||||
value="__discard__"
|
||||
className="text-destructive"
|
||||
onSelect={() => select('discard')}
|
||||
>
|
||||
<Ban className="mr-2 size-3.5 shrink-0" />
|
||||
{t('bots.targetDiscard')}
|
||||
{current === 'discard' && (
|
||||
<Check className="ml-auto size-3.5 shrink-0" />
|
||||
)}
|
||||
</CommandItem>
|
||||
</CommandGroup>
|
||||
</CommandList>
|
||||
</Command>
|
||||
</PopoverContent>
|
||||
|
||||
Reference in New Issue
Block a user