Skip to content

Commit

Permalink
fix(icons-shared): generate all symbols from 32px assets (#6912)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea N. Cardona <[email protected]>
  • Loading branch information
emyarod and andreancardona authored Sep 28, 2020
1 parent a6f39fa commit 2f61742
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/sketch/src/commands/icons/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ function createSVGArtboards(
return icons
.filter((icon) => !icon.deprecated)
.flatMap((icon) => {
const defaultAsset = icon.assets.find((asset) => asset.size === 32);

X_OFFSET = 0;

const artboards = sizes.map((size) => {
const asset =
icon.assets.find((asset) => asset.size === size) || defaultAsset;
const asset = icon.assets.find((asset) => asset.size === 32);
const svgString = NSString.stringWithString(asset.source);
const svgData = svgString.dataUsingEncoding(NSUTF8StringEncoding);
const svgImporter = MSSVGImporter.svgImporter();
Expand Down

0 comments on commit 2f61742

Please sign in to comment.