Skip to content

Commit

Permalink
Update WorkflowDefinitionService to use LatestOrPublished (#343)
Browse files Browse the repository at this point in the history
Replaced the version option from Published to LatestOrPublished when fetching workflow definitions. This ensures the list includes the latest versions if available, improving flexibility and accuracy in the workflow data displayed.
  • Loading branch information
sfmskywalker authored Dec 22, 2024
1 parent d37a95e commit 88b4e32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected override async Task OnInitializedAsync()

private async Task LoadWorkflowDefinitionsAsync()
{
var workflowDefinitionsResponse = await WorkflowDefinitionService.ListAsync(new ListWorkflowDefinitionsRequest(), VersionOptions.Published);
var workflowDefinitionsResponse = await WorkflowDefinitionService.ListAsync(new ListWorkflowDefinitionsRequest(), VersionOptions.LatestOrPublished);

WorkflowDefinitions = workflowDefinitionsResponse.Items;
}
Expand Down

0 comments on commit 88b4e32

Please sign in to comment.