mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-20 22:44:52 +00:00
Swap primary and foreign tables
This commit is contained in:
@@ -347,10 +347,14 @@ export default function Editor(props) {
|
||||
...r,
|
||||
startX: updatedValues.x + 15,
|
||||
startY: updatedValues.y + r.startFieldId * 36 + 69,
|
||||
endX: tables[r.endTableId].x + 15,
|
||||
endY: tables[r.endTableId].y + r.endFieldId * 36 + 69,
|
||||
};
|
||||
} else if (r.endTableId === id) {
|
||||
return {
|
||||
...r,
|
||||
startX: tables[r.startTableId].x + 15,
|
||||
startY: tables[r.startTableId].y + r.startFieldId * 36 + 69,
|
||||
endX: updatedValues.x + 15,
|
||||
endY: updatedValues.y + r.endFieldId * 36 + 69,
|
||||
};
|
||||
|
Reference in New Issue
Block a user