Skip to content

Commit a55b65b

Browse files
vualarvinxx
andauthored
🐛 fix: fix page error when url is not defined in web search plugin (#8441)
Co-authored-by: Arvin Xu <arvinx@foxmail.com>
1 parent 3359b3f commit a55b65b

File tree

1 file changed

+1
-1
lines changed
  • src/tools/web-browsing/Render/PageContent

1 file changed

+1
-1
lines changed

src/tools/web-browsing/Render/PageContent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const PagesContent = memo<PagesContentProps>(({ results, messageId, urls }) => {
1717
if (!results || results.length === 0) {
1818
return (
1919
<Flexbox gap={12} horizontal>
20-
{urls.map((url, index) => (
20+
{urls && urls.length > 0 && urls.map((url, index) => (
2121
<Loading key={`${url}_${index}`} url={url} />
2222
))}
2323
</Flexbox>

0 commit comments

Comments
 (0)