Skip to content

Commit

Permalink
Merge pull request #32 from Raathigesh/handle-styled-literal-without-…
Browse files Browse the repository at this point in the history
…assignment

Handle unassigned template literal
  • Loading branch information
Raathigesh authored Jun 10, 2019
2 parents ef8379d + 1ddea6e commit 7be3209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/file-handlers/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getTaggedTemplateExpressionStrings(ast: any) {
const location = path.node.quasi.loc;

results.push({
name: path.parent.id.name,
name: (path.parent.id && path.parent.id.name) || '',
cssString: wrapWithDummySelector(cssString),
location: {
start: {
Expand Down

0 comments on commit 7be3209

Please sign in to comment.