From b2be58e5da6100a99b25910b0efbe2fa6e391864 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 23 Mar 2017 15:58:52 +0100 Subject: [PATCH] Add defensive check for empty repository key --- js/projectDocumentationWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/projectDocumentationWidget.js b/js/projectDocumentationWidget.js index 2e30a35877..a52d9ba619 100644 --- a/js/projectDocumentationWidget.js +++ b/js/projectDocumentationWidget.js @@ -95,7 +95,7 @@ Spring.SnippetView = Backbone.View.extend({ this.combinedTemplate = _.template( "
" +
         downloadTemplate.find("code:first").html() +
-        "{@ if (repository) { @}" +
+        "{@ if (typeof(repository) != \"undefined\") { @}" +
         repositoryTemplate.find("code:first").html() +
         "{@ } @}" +
         "
"