diff --git a/src/hosts/Elsa.Studio.Host.CustomElements/Components/WorkflowDefinitionEditorWrapper.razor b/src/hosts/Elsa.Studio.Host.CustomElements/Components/WorkflowDefinitionEditorWrapper.razor index 98cb2f9e..2f2a359c 100644 --- a/src/hosts/Elsa.Studio.Host.CustomElements/Components/WorkflowDefinitionEditorWrapper.razor +++ b/src/hosts/Elsa.Studio.Host.CustomElements/Components/WorkflowDefinitionEditorWrapper.razor @@ -6,8 +6,7 @@ + ActivitySelected="ActivitySelected"/> @code @@ -45,8 +44,11 @@ /// Gets the currently selected workflow definition version. public WorkflowDefinition? GetSelectedWorkflowDefinitionVersion() => WorkflowDefinitionEditor.GetSelectedWorkflowDefinitionVersion(); + /// protected override bool ShouldRender() { - return _shouldRender; + if (!_shouldRender) return false; + _shouldRender = false; + return true; } } \ No newline at end of file