Skip to content

Commit 561ef7d

Browse files
authored
Merge pull request #8 from oslabs-beta/katherine/addingstyleclass
Katherine/addingstyleclass
2 parents da61d0f + 6557c87 commit 561ef7d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ export default {
136136
137137
// Iterates through active component's HTML elements list and adds to code snippet
138138
let htmlArr = this.componentMap[componentName].htmlList;
139-
console.log("ALERT")
140-
console.log('hellloo')
141-
console.log("here", htmlArr[0].class)
142-
console.log(htmlArr[0].children);
143139
let outputStr = ``;
144140
// eslint-disable-next-line no-unused-vars
145141
for (const el of htmlArr) {
@@ -238,10 +234,9 @@ export default {
238234
}
239235
240236
let htmlArray = this.componentMap[componentName].htmlList;
241-
console.log("down here", htmlArray);
242237
let styleString = "";
243238
for (const html of htmlArray) {
244-
if (!html.class) styleString = "";
239+
if (html.class === ' ') styleString = "";
245240
if (html.class) {
246241
styleString += `.${html.class} {\n}\n`
247242
}

0 commit comments

Comments
 (0)