Skip to content

Commit

Permalink
fix(sketch): avoid repositioning preexisting icon artboards (#8639)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
emyarod and kodiakhq[bot] authored May 12, 2021
1 parent c334c5d commit b121f73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sketch/src/tools/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export function syncSymbol({ symbols, name, config }) {
}

Object.keys(config).forEach((key) => {
symbol[key] = config[key];
if (key === 'frame') {
// prefer x and y positioning of existing artboard #8569
symbol[key] = symbol[key] ?? config[key];
} else {
symbol[key] = config[key];
}
});

return symbol;
Expand Down

0 comments on commit b121f73

Please sign in to comment.