Bug: open code menu, highlighted component - cmd+d = both duplicated

Pretty simple recreation.

I have my code menu open, and it has one query hightlighted.

I also had clicked on a component.

I did the duplicate shortcut (cmd + d) - and both the component, AND the query get duplicated.

What I've noticed - if you click query, then component, then cmd + d - both are duplicated.

BUT if you click component, then query, then cmd + d - only the query is duplicated.

ETA: Turns out, that even if you have the "Component Tree" open, if you have ANY query open, it will still duplicate the query AND the component.

…this explains the mysterious duplicate queries I was seeing created and not knowing how I was creating them.

1 Like

Hey @keif! Thanks for the report. I've submitted a bug report to the engineering team responsible for the Retool IDE and I'll update you here as I get any additional information on its status.

1 Like