From 189bf5762e474a2243115683edc7561481889007 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Mon, 13 Jan 2020 10:13:33 +0100 Subject: [PATCH] Fix const in repository show view --- app/views/repositories/show.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 5415e716e..d62e865c7 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -190,7 +190,5 @@ js_format.gsub!('%Y', 'YYYY') %> - if (typeof(formatJS) == undefined) { // Turbolinks fix - const formatJS = "<%= js_format %>" - } + var formatJS = "<%= js_format %>"