fix: update to access source field (#92)

This commit is contained in:
Medcl
2025-01-08 15:59:29 +08:00
committed by GitHub
parent 96e71b9901
commit 1f032139b2
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ function DropdownList({ selected, suggests }: DropdownListProps) {
</div>
<div className="flex gap-2 items-center relative">
<span className="text-sm text-[#666] dark:text-[#666] truncate w-52 text-right">
{item?._source?.source}
{item?._source?.source?.name}
</span>
{showIndex && index < 10 ? (
<div

View File

@@ -120,7 +120,7 @@ function Search({ isChatMode, input }: SearchProps) {
</div>
)}
<Footer isChat={false} name={selectedItem?.source} />
<Footer isChat={false} name={selectedItem?.source?.name} />
</div>
);
}