Add defensive check for empty repository key
This commit is contained in:
committed by
Jens Schauder
parent
330482f070
commit
8a7a0f4636
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user