⚡️ fix: Updated chat selection component to improve search functionality.
This commit is contained in:
parent
442c609167
commit
a844c15ac8
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ export default function ChatSelect({ disabled }: { disabled: boolean }) {
|
|||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-[300px] p-0">
|
||||
<Command>
|
||||
<Command shouldFilter={false}>
|
||||
<CommandInput
|
||||
placeholder="Search chat..."
|
||||
className="h-9"
|
||||
|
|
@ -73,7 +73,7 @@ export default function ChatSelect({ disabled }: { disabled: boolean }) {
|
|||
</div>
|
||||
</CommandLoading>
|
||||
)}
|
||||
<CommandEmpty>{!isLoading && "No chat found."}</CommandEmpty>
|
||||
<CommandEmpty>{!isLoading && chats.length === 0 && "No chat found."}</CommandEmpty>
|
||||
<CommandGroup>
|
||||
{chats.map((chat) => (
|
||||
<CommandItem
|
||||
|
|
|
|||
Loading…
Reference in a new issue