Skip to content

Commit b352200

Browse files
DanielGaran02Kelementz916anthonyHerrrobsinzRoderickXii
authored
final fixes/touches Co-authored-by: Daniel Garan <[email protected]> (#9)
Co-authored-by: Kevin Can <[email protected]> Co-authored-by: Anthony Herrera <[email protected]> Co-authored-by: Rob Sinzieri <[email protected]> Co-authored-by: Roderick de Leon <[email protected]>
1 parent fc43682 commit b352200

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,9 @@ if(activeComp.state.length || activeComp.actions.length){
687687
returnStatement += ` ${state}, \n`
688688
689689
});
690-
// line 22
691690
}
692691
693-
data += '\n };'
692+
data += '\n'
694693
695694
// if true add methods section and populate with actions
696695
let methods = "";
@@ -757,16 +756,14 @@ if(activeComp.state.length || activeComp.actions.length){
757756
output += methods;
758757
759758
if (exportAsTypescript.value === "on") {
760-
output += "});\n<\/script>\n\n<style scoped>\n</style>";
761-
} else if (activeComp.state.length || activeComp.actions.length) {
762-
output += ` \n}; \n ${returnStatement} };
763-
\n<\/script>\n\n<style scoped>\n${styleString}</style > `;
764-
} else {
765-
output += ` \n}; \n
766-
\n<\/script>\n\n<style scoped>\n${styleString}</style > `;
767-
}
759+
output += ` \n ${returnStatement} }; \n }; \n});\n<\/script>\n\n<style scoped>\n</style>`;
760+
} else if (activeComp.state.length || activeComp.actions.length) {
761+
output += ` \n ${returnStatement} }; \n };\n<\/script>\n\n<style scoped>\n${styleString}</style > `;
762+
} else {
763+
output += ` \n}; \n\n<\/script>\n\n<style scoped>\n${styleString}</style > `;
764+
}
768765
769-
return output;
766+
return output;
770767
};
771768
772769
/* WATCHES */

0 commit comments

Comments
 (0)