Update elsa-workflow-instance-list-screen.tsx

Fixes #2628
This commit is contained in:
Sipke Schoorstra 2021-12-25 11:02:28 +01:00
parent 2c37ceac70
commit d8ab05077e

View file

@ -184,7 +184,7 @@ export class ElsaWorkflowInstanceListScreen {
getLatestWorkflowBlueprintVersions(): Array<WorkflowBlueprintSummary> {
const groups = collection.groupBy(this.workflowBlueprints, 'id');
return collection.map(groups, x => array.first(collection.sortBy(x, 'version', 'desc')));
return collection.map(groups, x => array.first(collection.orderBy(x, 'version', 'desc')));
}
buildFilterUrl(workflowId?: string, workflowStatus?: WorkflowStatus, orderBy?: OrderBy, pageSize?: number, correlationId?: string) {