From 528c1db73a28d900eeb4478f75403ee1195362c1 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 18 Mar 2026 13:56:26 +0800 Subject: [PATCH] fix(Data Source): Unable to save after deleting all table relationships. --- frontend/src/views/ds/TableRelationship.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/ds/TableRelationship.vue b/frontend/src/views/ds/TableRelationship.vue index 9e83ff69..b4d953e2 100644 --- a/frontend/src/views/ds/TableRelationship.vue +++ b/frontend/src/views/ds/TableRelationship.vue @@ -406,7 +406,7 @@ const drop = (e: any) => { }) } const save = () => { - datasourceApi.relationSave(props.id, graph.toJSON().cells).then(() => { + datasourceApi.relationSave(props.id, graph ? graph.toJSON().cells : []).then(() => { ElMessage({ type: 'success', message: t('common.save_success'), @@ -447,7 +447,7 @@ const save = () => { @drop.prevent.stop="drop" >
- + {{ t('common.save') }}