From ef19005a9a967982b0e66c3c9b73e8ca7c74655c Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 24 Mar 2017 11:50:51 +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 900dab219..7475385e8 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() +
         "{@ } @}" +
         "
"