Skip to content

Commit 8b752e1

Browse files
author
Emma Genesen
committed
fixed extra div bug
1 parent 9ca58c9 commit 8b752e1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/components/nav-buttons/ExportMenu.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,20 @@ export default {
251251
// Creates router-link boilerplate for App
252252
if (componentName === "App") {
253253
str += `<div id="app">\n\t\t<div id="nav">\n`;
254-
for(let route in routes) {
254+
for (let route in routes) {
255255
if (route === "HomeView") {
256256
str += `\t\t\t<router-link to="/" class = "componentLinks">${route}</router-link>\n`;
257257
}
258258
else {
259259
str += `\t\t\t<router-link to="/${route}" class = "componentLinks">${route}</router-link>\n`;
260-
}}
260+
}
261+
}
261262
str += `\t\t</div>\n\t\t<router-view class = "router-view"></router-view>\n`;
262263
}
263-
else {
264-
// Adds component name as class for all routes
265-
str += `<div id = '${componentName}'>\n`;
266-
}
264+
// else {
265+
// // Adds component name as class for all routes
266+
// str += `<div id = '${componentName}'>\n`;
267+
// }
267268
// writes the HTML tag boilerplate
268269
let templateTagStr = this.writeTemplateTag(componentName);
269270

0 commit comments

Comments
 (0)