Skip to content

Commit 99159d3

Browse files
committed
fix(infisical): use falsy check for secretComment to prevent clearing existing comments
1 parent 0a16f69 commit 99159d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/blocks/blocks/infisical.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const InfisicalBlock: BlockConfig<InfisicalResponse> = {
192192
case 'update_secret':
193193
result.secretName = params.secretName
194194
if (params.updateSecretValue) result.secretValue = params.updateSecretValue
195-
if (params.secretComment != null) result.secretComment = params.secretComment
195+
if (params.secretComment) result.secretComment = params.secretComment
196196
if (params.newSecretName) result.newSecretName = params.newSecretName
197197
if (params.tagIds) result.tagIds = params.tagIds
198198
break

apps/sim/tools/infisical/update_secret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const updateSecretTool: ToolConfig<
9898
}
9999
if (params.secretValue) body.secretValue = params.secretValue
100100
if (params.secretPath) body.secretPath = params.secretPath
101-
if (params.secretComment != null) body.secretComment = params.secretComment
101+
if (params.secretComment) body.secretComment = params.secretComment
102102
if (params.newSecretName) body.newSecretName = params.newSecretName
103103
if (params.type) body.type = params.type
104104
if (params.tagIds) {

0 commit comments

Comments
 (0)