From f7bb27b8eb8c31669ca9be59c7716d11cd75a5f2 Mon Sep 17 00:00:00 2001 From: axeleron007 Date: Fri, 18 Jun 2021 18:37:25 +0300 Subject: [PATCH] Fix to the Webhook path in activity Fix to the Webhook path in activity. It was broken on the type change. --- .../elsa-activity-editor-modal/elsa-activity-editor-modal.tsx | 1 - .../elsa-workflows-studio/src/plugins/webhook-plugin.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/designer/elsa-workflows-studio/src/components/screens/workflow-definition-editor/elsa-activity-editor-modal/elsa-activity-editor-modal.tsx b/src/designer/elsa-workflows-studio/src/components/screens/workflow-definition-editor/elsa-activity-editor-modal/elsa-activity-editor-modal.tsx index 6a4a3b066..b249d5ac5 100644 --- a/src/designer/elsa-workflows-studio/src/components/screens/workflow-definition-editor/elsa-activity-editor-modal/elsa-activity-editor-modal.tsx +++ b/src/designer/elsa-workflows-studio/src/components/screens/workflow-definition-editor/elsa-activity-editor-modal/elsa-activity-editor-modal.tsx @@ -92,7 +92,6 @@ export class ElsaActivityEditorModal { } render() { - debugger const renderProps = this.renderProps; const activityDescriptor: ActivityDescriptor = renderProps.activityDescriptor; const propertyCategories = renderProps.propertyCategories; diff --git a/src/designer/elsa-workflows-studio/src/plugins/webhook-plugin.tsx b/src/designer/elsa-workflows-studio/src/plugins/webhook-plugin.tsx index 852adefc8..81aaf6eef 100644 --- a/src/designer/elsa-workflows-studio/src/plugins/webhook-plugin.tsx +++ b/src/designer/elsa-workflows-studio/src/plugins/webhook-plugin.tsx @@ -11,7 +11,7 @@ export class WebhookPlugin implements ElsaPlugin { onActivityDisplaying(context: ActivityDesignDisplayContext) { const activityModel = context.activityModel; - if (activityModel.type !== 'Webhook') + if (!activityModel.type.endsWith('Webhook')) return; const props = activityModel.properties || [];