u12206050 / figma-plugin-graphql

Figma plugin, add data to your elements straight from GraphQL
MIT License
9 stars 2 forks source link

Only the first component generated is filled with fetched data #13

Open kandarpksk opened 10 months ago

kandarpksk commented 10 months ago

When I use the plugin with the information below, I see 10 generated components (which is correct). However, only the first one is filled, with the rest appearing exactly as the original (see screenshot), which seems like a bug.

Server URL: https://graphql.cryoetdataportal.cziscience.com/v1/graphql Path to iterate over: data.datasets[0].runs

Query: { datasets { runs { name } } }

Component: {% name %}

image

kandarpksk commented 10 months ago

Related, but maybe not the same issue: when there are multiple handlebars to be filled in a component, only one appears to be filled. In the screenshot below, the "Dataset name" is filled in the second row (which is the first generated copy), but quality score, object name and object count aren't replaced.

image