DWilliames / google-sheets-sync-figma

80 stars 8 forks source link

Figma elements Hide when spreadsheet has multiple sheets #164

Open Pad120 opened 1 year ago

Pad120 commented 1 year ago

Describe the bug I have run into a similar issue that a lot of people have. When syncing, all my linked elements that should sync, instead sync and hide. After some debugging, I found the issue; if you have multiple sheets in your google doc and the sheet you syn IS NOT the first tab in the order of sheets, the elements will hide. This is 100% reproducible for me, and as a workaround, you can move the desired sheet to the beginning of the tab order, then sync, and it will work. You can then move the sheet back after.

To Reproduce

  1. Create a new Figma design file, and a new google spreadsheet.
  2. Add any basic data to your spread and a few figma elements to sync it with.
  3. Link the elements by Fetching, clicking the element you want to link, then clicking the cells in the Fetch preview. Do a first sync to confirm that the plug-in is working as expected. (I linked via cells, not rows or columns)
  4. Next, add a new sheet to your google spreadsheet, and ensure it is first in the tab order.
  5. Attempt to sync again. your elements should hide.
  6. Move your original sheet so that it is first in the tab order.
  7. Attempt to sync again. It should work as expected.

Expected behavior Syncing behavior should be consistent regardless of sheet order or placement. Syncing should not hide elements.

Additional context This issue occurs even if you manually Fetch, then select the sheet tab in the Preview and link your elements there. No matter what you do, the plug-in will only syn to the first sheet in a spreadsheet.