Fix relationship swap table crashing
This commit is contained in:
parent
d389c28fb7
commit
ce85bb6680
@ -139,11 +139,12 @@ export default function RelationshipInfo({ data }) {
|
|||||||
dataSource={[
|
dataSource={[
|
||||||
{
|
{
|
||||||
key: "1",
|
key: "1",
|
||||||
foreign: `${tables[data.startTableId].name}(${
|
foreign: `${tables[data.startTableId]?.name}(${
|
||||||
tables[data.startTableId].fields[data.startFieldId].name
|
tables[data.startTableId].fields[data.startFieldId]
|
||||||
|
?.name
|
||||||
})`,
|
})`,
|
||||||
primary: `${tables[data.endTableId].name}(${
|
primary: `${tables[data.endTableId]?.name}(${
|
||||||
tables[data.endTableId].fields[data.endFieldId].name
|
tables[data.endTableId].fields[data.endFieldId]?.name
|
||||||
})`,
|
})`,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
Loading…
Reference in New Issue
Block a user