Skip to content

Commit b2be58e

Browse files
committed
Add defensive check for empty repository key
1 parent e7438db commit b2be58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/projectDocumentationWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Spring.SnippetView = Backbone.View.extend({
9595
this.combinedTemplate = _.template(
9696
"<div class=\"highlight\"><pre><code>" +
9797
downloadTemplate.find("code:first").html() +
98-
"{@ if (repository) { @}" +
98+
"{@ if (typeof(repository) != \"undefined\") { @}" +
9999
repositoryTemplate.find("code:first").html() +
100100
"{@ } @}" +
101101
"</code></pre></div>"

0 commit comments

Comments
 (0)