Skip to content

Commit

Permalink
Add defensive check for empty repository key
Browse files Browse the repository at this point in the history
  • Loading branch information
bclozel committed Mar 23, 2017
1 parent e7438db commit b2be58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/projectDocumentationWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Spring.SnippetView = Backbone.View.extend({
this.combinedTemplate = _.template(
"<div class=\"highlight\"><pre><code>" +
downloadTemplate.find("code:first").html() +
"{@ if (repository) { @}" +
"{@ if (typeof(repository) != \"undefined\") { @}" +
repositoryTemplate.find("code:first").html() +
"{@ } @}" +
"</code></pre></div>"
Expand Down

0 comments on commit b2be58e

Please sign in to comment.