Skip to content

Commit

Permalink
[nan-337] fix check for value (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaliqgant authored Feb 7, 2024
1 parent fff3ea8 commit 6fa2f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webapp/src/pages/IntegrationCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function IntegrationCreate() {
const appId = authMode === AuthModes.App || AuthModes.Custom ? target.app_id?.value : target.client_id?.value;

let custom: Record<string, string> | undefined = authMode === AuthModes.Custom ? { app_id: appId, private_key } : undefined;
if (target.incoming_webhook_secret.value) {
if (target.incoming_webhook_secret?.value) {
custom = { webhookSecret: target.incoming_webhook_secret.value };
}

Expand Down

0 comments on commit 6fa2f2f

Please sign in to comment.