Skip to content

Commit

Permalink
misc: added default for metadataSyncMode
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Dec 23, 2024
1 parent cb1b006 commit e763a6f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion frontend/src/pages/integrations/aws-secret-manager/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,18 @@ export default function AWSSecretManagerCreateIntegrationPage() {
render={({ field: { onChange, value } }) => (
<Switch
id="tag-aws"
onCheckedChange={(isChecked) => onChange(isChecked)}
onCheckedChange={(isChecked) => {
if (
isChecked &&
selectedMappingBehavior === IntegrationMappingBehavior.ONE_TO_ONE
) {
setValue(
"metadataSyncMode",
IntegrationMetadataSyncMode.SECRET_METADATA
);
}
onChange(isChecked);
}}
isChecked={value}
>
Tag in AWS Secrets Manager
Expand Down

0 comments on commit e763a6f

Please sign in to comment.