I am working on a plugin that swaps remote variables with local ones. After running few tests I got this
Bunch of duplicates that do not affect anything. How do I get rid of them?
Here is the code I made - source-foundation/src/utils/swap-variables.ts at main · namad/source-foundation · GitHub
It does the following
Object.keys(n.boundVariables).length > 0
figma.variables.getVariableById(varId)
and figma.variables.getVariableCollectionById(collectionId)
figma.variables.setBoundVariableForPaint()
, figma.variables.setBoundVariableForEffect()
and node.setBoundVariable()
to bind local variables instead of what is bound to the layer originallyIt works just fine but after each run, I can see these ghost collections added to the page modes
Video of what’s going on
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.