diff --git a/pkg/ext/workflow_fetcher.go b/pkg/ext/workflow_fetcher.go index 98438e06..13d5487a 100644 --- a/pkg/ext/workflow_fetcher.go +++ b/pkg/ext/workflow_fetcher.go @@ -49,7 +49,7 @@ func (a *AdminFetcherExtClient) FetchWorkflowLatestVersion(ctx context.Context, if err != nil { return nil, err } - return a.FetchWorkflowVersion(ctx, name, wVersions[0].Id.Version, project, domain) + return a.FetchWorkflowVersion(ctx, name, wVersions[len(wVersions)-1].Id.Version, project, domain) } // FetchWorkflowVersion fetches particular version of workflow