Fix to the Webhook path in activity

Fix to the Webhook path in activity. It was broken on the type change.
This commit is contained in:
axeleron007 2021-06-18 18:37:25 +03:00
parent bb313ec95a
commit f7bb27b8eb
2 changed files with 1 additions and 2 deletions

View file

@ -92,7 +92,6 @@ export class ElsaActivityEditorModal {
}
render() {
debugger
const renderProps = this.renderProps;
const activityDescriptor: ActivityDescriptor = renderProps.activityDescriptor;
const propertyCategories = renderProps.propertyCategories;

View file

@ -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 || [];