Skip to content

[BUG] #599

@Ujjansh05

Description

@Ujjansh05

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:

  1. Go to the table creation section in the editor.
  2. Add a new table multiple times without changing the default name.
  3. Observe that multiple tables named 'table_6' are created.
  4. 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

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions