1
0
mirror of synced 2026-07-19 17:45:11 +00:00

Add defensive check for empty repository key

This commit is contained in:
Brian Clozel
2017-03-23 15:58:52 +01:00
parent e7438db1de
commit b2be58e5da
+1 -1
View File
@@ -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>"