diff options
Diffstat (limited to 'app/presenters/release_presenter.rb')
-rw-r--r-- | app/presenters/release_presenter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/presenters/release_presenter.rb b/app/presenters/release_presenter.rb index 8cf7446ce64..3db89df1cc8 100644 --- a/app/presenters/release_presenter.rb +++ b/app/presenters/release_presenter.rb @@ -44,9 +44,10 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated end def evidence_file_path - return unless release.evidence.present? + evidence = release.evidences.first + return unless evidence - evidence_project_release_url(project, release.to_param, format: :json) + project_evidence_url(project, release, evidence, format: :json) end private |