From 8a647ee0037695a7e5a626869b4fbdb785ae63ce Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 9 Jan 2020 15:32:28 +0100 Subject: [PATCH] Fix error on opening inventory --- app/views/repositories/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 734434913..5415e716e 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -189,5 +189,8 @@ js_format.gsub!(/%B/, 'MMMM') js_format.gsub!('%Y', 'YYYY') %> - const formatJS = "<%= js_format %>" + + if (typeof(formatJS) == undefined) { // Turbolinks fix + const formatJS = "<%= js_format %>" + }