Browse Source

SyntaxError: Identifier 'arrow' has already been declared

Simon Legner 1 year ago
parent
commit
b390859b1e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/templates/path_tmpl.js

+ 1 - 1
assets/javascripts/templates/path_tmpl.js

@@ -5,9 +5,9 @@
  * DS102: Remove unnecessary code created because of implicit returns
  * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
  */
-const arrow = '<svg class="_path-arrow"><use xlink:href="#icon-dir"/></svg>';
 
 app.templates.path = function (doc, type, entry) {
+  const arrow = '<svg class="_path-arrow"><use xlink:href="#icon-dir"/></svg>';
   let html = `<a href="${doc.fullPath()}" class="_path-item _icon-${
     doc.icon
   }">${doc.fullName}</a>`;