Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store): Uploading to store selects two agents #9065

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const PublishAgentSelect: React.FC<PublishAgentSelectProps> = ({
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
{agents.map((agent) => (
<div
key={agent.name}
key={agent.id}
className={`cursor-pointer overflow-hidden rounded-2xl transition-all ${
selectedAgent === agent.name
selectedAgentId === agent.id
? "shadow-lg ring-4 ring-violet-600"
: "hover:shadow-md"
}`}
Expand All @@ -124,7 +124,7 @@ export const PublishAgentSelect: React.FC<PublishAgentSelectProps> = ({
}}
tabIndex={0}
role="button"
aria-pressed={selectedAgent === agent.name}
aria-pressed={selectedAgentId === agent.id}
>
<div className="relative h-32 bg-gray-100 dark:bg-gray-700 sm:h-40">
<Image
Expand Down
Loading