From 4646de463ad30d0eeaee0b753fd2230ce514bde1 Mon Sep 17 00:00:00 2001 From: Swifty Date: Thu, 19 Dec 2024 09:51:01 +0100 Subject: [PATCH] fix(store): Uploading to store selects two agents (#9065) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #9059 ### Changes 🏗️ - Changed agent selection from keying on agent name to keying on agent id --- .../frontend/src/components/agptui/PublishAgentSelect.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autogpt_platform/frontend/src/components/agptui/PublishAgentSelect.tsx b/autogpt_platform/frontend/src/components/agptui/PublishAgentSelect.tsx index e5cf4b47c1b5..462da649d05a 100644 --- a/autogpt_platform/frontend/src/components/agptui/PublishAgentSelect.tsx +++ b/autogpt_platform/frontend/src/components/agptui/PublishAgentSelect.tsx @@ -107,9 +107,9 @@ export const PublishAgentSelect: React.FC = ({
{agents.map((agent) => (
= ({ }} tabIndex={0} role="button" - aria-pressed={selectedAgent === agent.name} + aria-pressed={selectedAgentId === agent.id} >