mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:38:21 +00:00
Merge pull request #12974 from nocodb/fix/no-cdf-override-when-update
fix: do not override cdf when update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user