Skip to content

Build and run agents you can see, understand and trust.

fix(webui): avoid nested <button> in sidebar group action (#1769)

Xinmin Zengc24200952b8e
diff --git a/examples/web_ui/frontend/src/pages/chat/index.tsx b/examples/web_ui/frontend/src/pages/chat/index.tsx
index e6fd177b0..570f10509 100644
--- a/examples/web_ui/frontend/src/pages/chat/index.tsx
+++ b/examples/web_ui/frontend/src/pages/chat/index.tsx
@@ -260,7 +260,7 @@ const ChatPageInner = () => {
<SidebarContent className="my-5">
<SidebarGroup>
<SidebarGroupLabel>{t('chat.session.label')}</SidebarGroupLabel>
- <SidebarGroupAction>
+ <SidebarGroupAction asChild>
<Button
id="tour-create-session"
size="icon-xs"
diff --git a/examples/web_ui/frontend/src/pages/credential/index.tsx b/examples/web_ui/frontend/src/pages/credential/index.tsx
index c1bcba5bd..b7e208b17 100644
--- a/examples/web_ui/frontend/src/pages/credential/index.tsx
+++ b/examples/web_ui/frontend/src/pages/credential/index.tsx
@@ -382,6 +382,7 @@ export const CredentialPage = () => {
<SidebarGroup key={type}>
<SidebarGroupLabel>{title}</SidebarGroupLabel>
<SidebarGroupAction
+ asChild
title={t('credential.addConfig')}
onClick={() => handleOpenCreate(type)}
>