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. ![Screenshot_2026-07-23_at_10.26.05_PM](/uploads/0906943af1ebc20981bdc022a1c620a1/Screenshot_2026-07-23_at_10.26.05_PM.png){width=900 height=381} ![Screenshot_2026-07-23_at_10.26.32_PM](/uploads/3fbbebeda03278382a1f832c5bd2874d/Screenshot_2026-07-23_at_10.26.32_PM.png){width=900 height=398}
issue