Skip to content

Commit

Permalink
Refactor WorkflowDefinitionEditorWrapper rendering logic
Browse files Browse the repository at this point in the history
Update the ShouldRender method to ensure proper rendering control. Also, clean up XML comment and correct component tag formatting.
  • Loading branch information
sfmskywalker committed Oct 4, 2024
1 parent 474a44d commit bca308c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<WorkflowDefinitionEditor DefinitionId="@DefinitionId"
WorkflowDefinitionExecuted="WorkflowDefinitionExecuted"
WorkflowDefinitionVersionSelected="WorkflowDefinitionVersionSelected"
ActivitySelected="ActivitySelected"
/>
ActivitySelected="ActivitySelected"/>
</ThemedComponentWrapper>

@code
Expand Down Expand Up @@ -45,8 +44,11 @@
/// Gets the currently selected workflow definition version.
public WorkflowDefinition? GetSelectedWorkflowDefinitionVersion() => WorkflowDefinitionEditor.GetSelectedWorkflowDefinitionVersion();

/// <inheritdoc />
protected override bool ShouldRender()
{
return _shouldRender;
if (!_shouldRender) return false;
_shouldRender = false;
return true;
}
}

0 comments on commit bca308c

Please sign in to comment.