When editing a master component, using the UI pulldown menu (right sidebar inspector) to convert a Group to a Frame updates the layer display, but the underlying Plugin API node type incorrectly remains GROUP instead of changing to FRAME.
The issue here is that there’s now a mismatch between the way the API can access this node type and the way it’s represented to humans in the display tree; Humans can’t visually verify that we’re looking at a false Frame (that’s really just a Group) unless they run dev console commands against the node type.
Steps to reproduce:
- Create a Component
- Add random things to it, Group those items
- Select the Group
- Type this in the console:
console.log(figma.currentPage.selection[0]?.type);-
Note that it says “GROUP”
-
Use the UI to switch in the sidebar to change it into a Frame
-
Repeat the console command
-
Note that it still outputs “GROUP”, and display tree says that it’s a Frame
