Skip to content

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

fix: remove default version assignment in insert method of LinkToAnotherRecordColumn

Pranav C2a39c6988b74
diff --git a/packages/nocodb/src/models/LinkToAnotherRecordColumn.ts b/packages/nocodb/src/models/LinkToAnotherRecordColumn.ts
index 732994460b..604db79087 100644
--- a/packages/nocodb/src/models/LinkToAnotherRecordColumn.ts
+++ b/packages/nocodb/src/models/LinkToAnotherRecordColumn.ts
@@ -196,11 +196,6 @@ export default class LinkToAnotherRecordColumn {
'version',
]);
- // if version is not provided, default to 2
- if (insertObj.version === undefined) {
- insertObj.version = 2;
- }
-
await ncMeta.metaInsert2(
context.workspace_id,
context.base_id,