-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Describe the bug
When adding tables, the app allows creation of multiple tables with the same name (e.g., 'table_6'), resulting in duplicate table names.
To Reproduce
Steps to reproduce the behavior:
- Go to the table creation section in the editor.
- Add a new table multiple times without changing the default name.
- Observe that multiple tables named 'table_6' are created.
- The issue warning appears: "Duplicate table by the name 'table_6'".
Expected behavior
Each new table should have a unique name by default, or the app should prevent adding tables with duplicate names.
Screenshots

Desktop :
- OS: Windows 11
- Browser: Chrome
Additional context
This issue makes it difficult to distinguish between tables and may cause problems when exporting or working with the diagram.
Solution
Update the table creation logic to ensure each new table has a unique name.
When adding a new table, check existing table names and automatically assign a name that does not conflict (e.g., increment the number: table_6
, table_7
, etc.).
This will prevent duplicate table names and improve usability.