diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue index ce5ce260e3..9b3d485414 100644 --- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue @@ -47,9 +47,18 @@ if (!isEdit.value) { if (!vModel.value.onDelete) vModel.value.onDelete = onUpdateDeleteOptions[0] if (!vModel.value.virtual) vModel.value.virtual = sqlUi === SqliteUi // appInfo.isCloud || sqlUi === SqliteUi if (!vModel.value.alias) vModel.value.alias = vModel.value.column_name +} else { + if (!vModel.value.childId) + vModel.custom = { + ref_model_id: vModel.value?.colOptions?.fk_related_model_id, + base_id: meta.value?.base_id, + junc_base_id: meta.value?.base_id, + } + if (!vModel.value.childViewId) vModel.value.childViewId = vModel.value?.colOptions?.fk_target_view_id || null } if (!vModel.value.childId) vModel.value.childId = vModel.value?.colOptions?.fk_related_model_id || null if (!vModel.value.childViewId) vModel.value.childViewId = vModel.value?.colOptions?.fk_target_view_id || null +if (!vModel.value.type) vModel.value.type = vModel.value?.colOptions?.type || 'mm' const advancedOptions = ref(false) @@ -221,11 +230,18 @@ const handleShowAdvanceOptions = () => {