2
0

fix(templates): 🐛 webhookId in non webhook step

This commit is contained in:
Baptiste Arnaud
2022-04-19 08:57:36 -07:00
parent e569e59699
commit 240cbeed62
3 changed files with 16 additions and 28 deletions

View File

@ -96,7 +96,12 @@ export const isIntegrationStep = (step: Step): step is IntegrationStep =>
(Object.values(IntegrationStepType) as string[]).includes(step.type)
export const isWebhookStep = (step: Step): step is WebhookStep =>
'webhookId' in step
[
IntegrationStepType.WEBHOOK,
IntegrationStepType.PABBLY_CONNECT,
IntegrationStepType.ZAPIER,
IntegrationStepType.MAKE_COM,
].includes(step.type as IntegrationStepType)
export const isBubbleStepType = (type: StepType): type is BubbleStepType =>
(Object.values(BubbleStepType) as string[]).includes(type)