Skip to content

Commit 0f0292d

Browse files
committed
address greptile comments
1 parent fc59953 commit 0f0292d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/sim/lib/webhooks/deploy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ async function upsertSingleWebhook(params: {
358358

359359
const finalProviderConfig = {
360360
...nextProviderConfig,
361-
credentialId: existingConfig.credentialId,
362-
credentialSetId: existingConfig.credentialSetId,
363-
userId: existingConfig.userId,
361+
credentialId: nextProviderConfig.credentialId ?? existingConfig.credentialId,
362+
credentialSetId: nextProviderConfig.credentialSetId ?? existingConfig.credentialSetId,
363+
userId: nextProviderConfig.userId ?? existingConfig.userId,
364364
historyId: existingConfig.historyId,
365365
lastCheckedTimestamp: existingConfig.lastCheckedTimestamp,
366366
setupCompleted: existingConfig.setupCompleted,

0 commit comments

Comments
 (0)