Skip to content

Commit

Permalink
fix: less space for undefined key
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 28, 2020
1 parent 628d09f commit 4226989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/instrument/src/babel/extract-component.ts
Expand Up @@ -80,7 +80,9 @@ export const extractComponent = async (
...acc,
[from]: [
...acc[from],
{ name, from, importedName, key: importKey },
key
? { name, from, importedName, key: importKey }
: { name, from, importedName },
],
};
}
Expand Down

0 comments on commit 4226989

Please sign in to comment.