mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-13 22:10:49 +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,
|
...prev,
|
||||||
{
|
{
|
||||||
id,
|
id,
|
||||||
name: `table_${prev.length}`,
|
name: `table_${id}`,
|
||||||
x: transform.pan.x,
|
x: transform.pan.x,
|
||||||
y: transform.pan.y,
|
y: transform.pan.y,
|
||||||
locked: false,
|
locked: false,
|
||||||
|
Reference in New Issue
Block a user