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

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;