Skip to content

Commit

Permalink
Fix use case selection
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <wonglam@amazon.com>
  • Loading branch information
wanglam committed Jul 19, 2024
1 parent 581975e commit d60341d
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@ export const WorkspaceUseCase = ({
formErrors,
availableUseCases,
}: WorkspaceUseCaseProps) => {
const handleCardChange = useCallback(
(id: string) => {
if (value === id) {
return;
}
onChange(id);
},
[value, onChange]
);

return (
<EuiFormRow
label={i18n.translate('workspace.form.workspaceUseCase.name.label', {
Expand All @@ -94,8 +84,8 @@ export const WorkspaceUseCase = ({
id={id}
title={title}
description={description}
checked={!!value?.includes(id)}
onChange={handleCardChange}
checked={value === id}
onChange={onChange}
/>
</EuiFlexItem>
))}
Expand Down

0 comments on commit d60341d

Please sign in to comment.