NO BUG: Classes and Variables in Trash are not updated/added when pasting html

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

When pasting in HTML into bricks classes or variables that are in the trash will not be added/taken out of trash. Thus often breaking the design.

In my workflow I was testing some designs generated by ChatGPT, deleting all the classes in between revisions is important as ChatGPT might reuse the same classes.

I’m not sure if this is a bug or intended behaviour, but it had me confused for a bit when my classes were not displaying correctly

Hi Jelle,
Welcome to the forum, and thanks so much for your report!

This is the expected behavior. In this scenario, you should simply empty the trash before importing the same classes again.

Alternatively, you can just leave them where they are (without deleting them), since when you re-import the same class, you’ll be asked whether you want to overwrite it or not, which you should confirm by clicking “Accept.” If this prompt doesn’t appear for you, check Bricks » Settings » Builder » Global class import manager.

Best regards,
timmse