Skip to content

Commit 3f90991

Browse files
committed
feat(Data Source): add Table relationship management
1 parent 976f463 commit 3f90991

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/views/ds/TableRelationship.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ const getTableData = () => {
221221
datasourceApi
222222
.relationGet(props.id)
223223
.then((data: any) => {
224+
if (!data.length) return
224225
nodeIds.value = data.filter((ele: any) => ele.shape === 'er-rect').map((ele: any) => ele.id)
225226
nextTick(() => {
226227
if (!graph) {
@@ -230,8 +231,6 @@ const getTableData = () => {
230231
if (item.shape === 'edge') {
231232
cells.value.push(graph.createEdge({ ...item, ...edgeOPtion }))
232233
} else {
233-
console.log(item)
234-
235234
cells.value.push(
236235
graph.createNode({
237236
...item,

0 commit comments

Comments
 (0)