⚡️ 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>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent className="w-[300px] p-0">
|
<PopoverContent className="w-[300px] p-0">
|
||||||
<Command>
|
<Command shouldFilter={false}>
|
||||||
<CommandInput
|
<CommandInput
|
||||||
placeholder="Search chat..."
|
placeholder="Search chat..."
|
||||||
className="h-9"
|
className="h-9"
|
||||||
|
|
@ -73,7 +73,7 @@ export default function ChatSelect({ disabled }: { disabled: boolean }) {
|
||||||
</div>
|
</div>
|
||||||
</CommandLoading>
|
</CommandLoading>
|
||||||
)}
|
)}
|
||||||
<CommandEmpty>{!isLoading && "No chat found."}</CommandEmpty>
|
<CommandEmpty>{!isLoading && chats.length === 0 && "No chat found."}</CommandEmpty>
|
||||||
<CommandGroup>
|
<CommandGroup>
|
||||||
{chats.map((chat) => (
|
{chats.map((chat) => (
|
||||||
<CommandItem
|
<CommandItem
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue