Here is my code:
code.js
...
const variableCollection = figma.variables.getLocalVariableCollections();
const variables = figma.variables.getLocalVariables();
...
showUI(
{
height: 137,
width: 240,
},
{ collections: variableCollection, vars: variables }
);
ui.js
function Plugin(props: {
collections: VariableCollection[];
vars: Variable[];
}) {
...
const collectionComponents = props.collections.map((node) => {
return <Text>{node.name}</Text>;
});
...
For some reason, when I send the prop through, some keys gets removed. What is causing this?
Below is an image of how it looks like before and after