We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976f463 commit 3f90991Copy full SHA for 3f90991
frontend/src/views/ds/TableRelationship.vue
@@ -221,6 +221,7 @@ const getTableData = () => {
221
datasourceApi
222
.relationGet(props.id)
223
.then((data: any) => {
224
+ if (!data.length) return
225
nodeIds.value = data.filter((ele: any) => ele.shape === 'er-rect').map((ele: any) => ele.id)
226
nextTick(() => {
227
if (!graph) {
@@ -230,8 +231,6 @@ const getTableData = () => {
230
231
if (item.shape === 'edge') {
232
cells.value.push(graph.createEdge({ ...item, ...edgeOPtion }))
233
} else {
- console.log(item)
234
-
235
cells.value.push(
236
graph.createNode({
237
...item,
0 commit comments