X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/41d7b9bb8a45b0d80fb2bf15af4c9e7b3d77a467..570509ab4d2ef93d870fd2b1f2eab178afb1bad9:/apps/workbench/app/views/work_units/_component_detail.html.erb diff --git a/apps/workbench/app/views/work_units/_component_detail.html.erb b/apps/workbench/app/views/work_units/_component_detail.html.erb index f66ff07a88..7d588bace6 100644 --- a/apps/workbench/app/views/work_units/_component_detail.html.erb +++ b/apps/workbench/app/views/work_units/_component_detail.html.erb @@ -43,6 +43,7 @@ <% # link to repo tree/file only if the repo is readable and the commit is a sha1 repo = (/^[0-9a-f]{40}$/ =~ current_obj.script_version and + current_obj.repository and object_for_dataclass(Repository, current_obj.repository, :name)) repo = nil unless repo.andand.http_fetch_url %>