Uncaught TypeError (Cannot destructure property 'entityFields') when recreating a component after deleting an unadded draft
Creating a component with a name previously used by a draft component that was deleted before being added to the library results in a critical UI crash ("An unexpected error has occurred"). The issue stems from a TypeError when the application attempts to read entityFields off an undefined property within dataDependencies.
Error Message: Cannot destructure property 'entityFields' of 'e.dataDependencies' as it is undefined.
Steps to Reproduce :
1. Open Canvas and initiate creation of a new component (e.g., name it test1).
2. Do not click "Add to components" (leave it in an unadded/draft state).
3. Return to the Canvas main view and delete the newly created component test1.
4. Attempt to create a new component again using the same name (test1).
5. Click Create.
Observed Behavior
The UI crashes with an unexpected error overlay displaying:
"An unexpected error has occurred. Cannot destructure property 'entityFields' of 'e.dataDependencies' as it is undefined."
The user remains stuck on the creation screen and cannot proceed further without hard refresh.
{width=900 height=381}
{width=900 height=398}
issue