Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros committed Jun 24, 2024
1 parent 0b7a7b9 commit bb8fca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-src/transformers/transformDocumentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const getFillStyles = async (): Promise<Record<string, FillStyle>> => {
data: 'fills'
});

for (const [styleId] of stylesToFetch) {
const figmaStyle = await figma.getStyleByIdAsync(styleId);
for (const [styleId, paintStyle] of stylesToFetch) {
const figmaStyle = paintStyle ?? (await figma.getStyleByIdAsync(styleId));
if (figmaStyle && isPaintStyle(figmaStyle)) {
styles[styleId] = translatePaintStyles(figmaStyle);
}
Expand Down

0 comments on commit bb8fca0

Please sign in to comment.