Skip to content

Commit

Permalink
Handle unassigned template literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Raathigesh committed Jun 4, 2019
1 parent ef8379d commit 1ddea6e
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 1ddea6e

Please sign in to comment.