mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 18:56:00 +00:00
renamed groupId => pairingId
This commit is contained in:
@@ -37,12 +37,12 @@
|
||||
if (columnInfo) {
|
||||
setTableInfo(tbl => ({
|
||||
...tbl,
|
||||
columns: tbl.columns.map(col => (col.groupId == columnInfo.groupId ? e.detail : col)),
|
||||
columns: tbl.columns.map(col => (col.pairingId == columnInfo.pairingId ? e.detail : col)),
|
||||
}));
|
||||
} else {
|
||||
setTableInfo(tbl => ({
|
||||
...tbl,
|
||||
columns: [...tbl.columns, { ...e.detail, groupId: uuidv1() }],
|
||||
columns: [...tbl.columns, { ...e.detail, pairingId: uuidv1() }],
|
||||
}));
|
||||
}
|
||||
// onConfirm();
|
||||
@@ -57,7 +57,7 @@
|
||||
closeCurrentModal();
|
||||
setTableInfo(tbl => ({
|
||||
...tbl,
|
||||
columns: tbl.columns.filter(col => col.groupId != columnInfo.groupId),
|
||||
columns: tbl.columns.filter(col => col.pairingId != columnInfo.pairingId),
|
||||
}));
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user