I’m creative a component that has 4 variants, but for some reason Figma thinks there’s some extra 5th one that’s not seen anywhere else but in this panel only:
You can see that there’s only 4 in two other places:
From the layers panel I understand that something went wrong. The naming doesn’t make sense, and the number 5 also doesn’t make sense.
It’s important to mention that I created the variants solely through the interface and not through manually changing layer names.
It seems to be a bug.
I solved the issue by manually renaming the layers.