From 6b67d56d5a1ddbf14bd4fab25768ae7bd24187bc Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 13 Nov 2023 05:52:51 +0000 Subject: [PATCH] fix: Fixed issue with data prepopulation in the case of creating new record through links modal in the case of many to many --- .../nc-gui/components/virtual-cell/components/ListItems.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/virtual-cell/components/ListItems.vue b/packages/nc-gui/components/virtual-cell/components/ListItems.vue index 33ba9ca447..7e91152058 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListItems.vue @@ -112,7 +112,8 @@ const newRowState = computed(() => { if (isNew.value) return {} const colOpt = (injectedColumn?.value as ColumnType)?.colOptions as LinkToAnotherRecordType const colInRelatedTable: ColumnType | undefined = relatedTableMeta?.value?.columns?.find((col) => { - if (col.uidt !== UITypes.LinkToAnotherRecord) return false + // Links as for the case of 'mm' we need the 'Links' column + if (col.uidt !== UITypes.LinkToAnotherRecord && col.uidt !== UITypes.Links) return false const colOpt1 = col?.colOptions as LinkToAnotherRecordType if (colOpt1?.fk_related_model_id !== meta.value.id) return false