Merge pull request #794 from automatisch/fix-broken-flow-editor

fix: make type optional for webhook check
This commit is contained in:
Ali BARIN 2022-12-12 15:57:30 +01:00 committed by GitHub
commit 8036d20bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ function ChooseAppAndEventSubstep(
);
const isWebhook =
isTrigger && (selectedActionOrTrigger as ITrigger).type === 'webhook';
isTrigger && (selectedActionOrTrigger as ITrigger)?.type === 'webhook';
const { name } = substep;