Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: update getMeta call since it include base id

Pranav C886915ab3017
diff --git a/packages/nc-gui/composables/useColumnCreateStore.ts b/packages/nc-gui/composables/useColumnCreateStore.ts
index d23b744ab5..e607969a27 100644
--- a/packages/nc-gui/composables/useColumnCreateStore.ts
+++ b/packages/nc-gui/composables/useColumnCreateStore.ts
@@ -421,7 +421,11 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
// if LTARv2 column update and relation type changed
// then reload the reference table meta
if (isMMOrMMLike(column.value))
- getMeta((column.value?.colOptions as LinkToAnotherRecordType)?.fk_related_model_id, true)
+ getMeta(
+ (column.value?.colOptions as LinkToAnotherRecordType)?.fk_related_base_id ?? column.value?.base_id,
+ (column.value?.colOptions as LinkToAnotherRecordType)?.fk_related_model_id,
+ true,
+ )
if (oldCol && [UITypes.Date, UITypes.DateTime, UITypes.CreatedTime, UITypes.LastModifiedTime].includes(oldCol.uidt)) {
viewsStore.loadViews({