tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.32k stars 190 forks source link

Duplicating token across sets also duplicates the token in the current set #2921

Open NuthanHyma opened 1 week ago

NuthanHyma commented 1 week ago

Describe the bug when duplicating any token from set A to set B, the token gets duplicated into both set A and B

To Reproduce Steps to reproduce the behavior:

  1. Right-click on any token and select duplicate token.
  2. Now navigate to set and select the set (set B) that the token needs to be duplicated into and deselect the current set(set A)
  3. Now duplicate the token and see the error.

Expected behavior when duplicating any token from set A to set B, the token should not get duplicated into both set A and B. It should only be duplicated for the set B.

Screenshots or Screencasts

https://github.com/tokens-studio/figma-plugin/assets/140593995/acfaeebe-972d-4fdd-816e-a5099e4bbae2

Figma file (optional)