Skip to content

Commit

Permalink
fix(sketch): avoid repositioning preexisting icon artboards
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed May 10, 2021
1 parent 14b4dc1 commit d50fbf2
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 d50fbf2

Please sign in to comment.