mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-05 06:10:52 -05:00
Filtering design system nodes (#130)
* filtering design system nodes * Delete .changeset/eight-berries-hunt.md
This commit is contained in:
parent
92167aca42
commit
3f9189c7c1
1 changed files with 3 additions and 2 deletions
|
@ -24,9 +24,10 @@ export const transformInstanceNode = async (
|
||||||
* We do not want to process component instances in the following scenarios:
|
* We do not want to process component instances in the following scenarios:
|
||||||
*
|
*
|
||||||
* 1. If the component does not have a main component.
|
* 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue