Skip to content

Commit

Permalink
Fix for Sketch 80.1
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Dec 8, 2021
1 parent 537e060 commit e469a26
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,17 @@ function findVisibleTextLayerInfos(parent) {
let detachedSymbol;
if (symbolInstance.detachStylesAndReplaceWithGroupRecursively) {
let map = symbolInstance.detachStylesAndReplaceWithGroupRecursively();
detachedSymbol = map.objectForKey(symbolInstance);
detachedSymbol = map.objectForKey(symbolInstance.immutableModelObject());
} else {
detachedSymbol = symbolInstance.detachByReplacingWithGroup();
}
visibleTextLayerInfos = [
...visibleTextLayerInfos,
...findVisibleTextLayerInfos(detachedSymbol)
];

if (detachedSymbol) {
visibleTextLayerInfos = [
...visibleTextLayerInfos,
...findVisibleTextLayerInfos(detachedSymbol)
];
}
if (bgColor) {
let bgLayer = MSShapeGroup.shapeWithRect(
NSMakeRect(frame.x(), frame.y(), frame.width(), frame.height()));
Expand Down

0 comments on commit e469a26

Please sign in to comment.