1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Merge branch 'fix/budi-7827' of github.com:Budibase/budibase

This commit is contained in:
mike12345567 2023-12-12 15:19:30 +00:00
commit 5901b0ea17

View file

@ -44,14 +44,16 @@
})
})
return Object.values(relatedColumns).map(({ from, to, through }) => {
return {
tables: `${from.tableName} ${through ? "↔" : "→"} ${to.tableName}`,
columns: `${from.name} to ${to.name}`,
from,
to,
}
})
return Object.values(relatedColumns)
.filter(({ from, to }) => from && to)
.map(({ from, to, through }) => {
return {
tables: `${from.tableName} ${through ? "↔" : "→"} ${to.tableName}`,
columns: `${from.name} to ${to.name}`,
from,
to,
}
})
}
const handleRowClick = ({ detail }) => {