Merge pull request #12974 from nocodb/fix/no-cdf-override-when-update

fix: do not override cdf when update
This commit is contained in:
Fendy H
2026-01-30 16:45:02 +07:00
committed by GitHub

View File

@@ -2181,8 +2181,17 @@ export class ColumnsService implements IColumnsService {
}
}
const originalCdf = colBody.cdf;
colBody = await getColumnPropsFromUIDT(colBody, source);
if (
typeof colBody.cdf !== 'undefined' &&
typeof originalCdf === 'undefined'
) {
// do not override cdf when request is undefined
colBody.cdf = originalCdf;
}
await this.updateMetaAndDatabase(context, {
table,
// pass id since it won't be part of api request