From 679bcc13dc049a57f77d811375df917030ce0bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20G=C3=BCran?= Date: Wed, 25 Jan 2023 18:08:04 +0100 Subject: [PATCH] Fixed issue with updating state on activity version selection --- .../modules/activity-definitions/components/editor.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/designer/elsa-workflows-designer/src/modules/activity-definitions/components/editor.tsx b/src/designer/elsa-workflows-designer/src/modules/activity-definitions/components/editor.tsx index d21881d2b..738219440 100644 --- a/src/designer/elsa-workflows-designer/src/modules/activity-definitions/components/editor.tsx +++ b/src/designer/elsa-workflows-designer/src/modules/activity-definitions/components/editor.tsx @@ -292,7 +292,13 @@ export class Editor { this.saveChangesDebounced(); } + private onGraphUpdated = async (e: CustomEvent) => { + this.saveChangesDebounced(); + }; + render() { + const activityDefinition = this.activityDefinitionState; + return (
this.container = el}> @@ -304,9 +310,10 @@ export class Editor { this.flowchartElement = el} interactiveMode={true} + onGraphUpdated={this.onGraphUpdated} onDragOver={this.onDragOver} onDrop={this.onDrop}/>