Skip to content

Commit

Permalink
Filtering design system nodes (#130)
Browse files Browse the repository at this point in the history
* filtering design system nodes

* Delete .changeset/eight-berries-hunt.md
  • Loading branch information
Cenadros authored Jun 3, 2024
1 parent 92167ac commit 3f9189c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin-src/transformers/transformInstanceNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ export const transformInstanceNode = async (
* We do not want to process component instances in the following scenarios:
*
* 1. If the component does not have a main component.
* 2. If the component does not have parent (it comes from an external design system).
* 2. If the component comes from an external design system.
* 3. If th component does not have a parent. (it's been removed)
*/
if (!mainComponent || mainComponent.parent === null) {
if (!mainComponent || mainComponent.remote || mainComponent.parent === null) {
return;
}

Expand Down

0 comments on commit 3f9189c

Please sign in to comment.