diff --git a/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/browser.tsx b/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/browser.tsx index 3d5591740..54d11b445 100644 --- a/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/browser.tsx +++ b/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/browser.tsx @@ -61,7 +61,9 @@ export class WorkflowDefinitionBrowser { this.modalDialogService.show( () => DefaultContents.Warning("Are you sure you want to delete this workflow definition?"), { - actions: [DefaultModalActions.Delete(() => { + actions: [DefaultModalActions.Delete(async () => { + await this.api.delete(workflowDefinition); + await this.loadWorkflowDefinitions(); }), DefaultModalActions.Cancel()], modalType: ModalType.Confirmation });