mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-13 13:58:05 +00:00
Prevent Duplicate Table Names When Creating Tables (Update DiagramContext.jsx) (#600)
* Update DiagramContext.jsx * Update DiagramContext.jsx
This commit is contained in:
@@ -29,7 +29,7 @@ export default function DiagramContextProvider({ children }) {
|
||||
...prev,
|
||||
{
|
||||
id,
|
||||
name: `table_${prev.length}`,
|
||||
name: `table_${id}`,
|
||||
x: transform.pan.x,
|
||||
y: transform.pan.y,
|
||||
locked: false,
|
||||
|
Reference in New Issue
Block a user