Browse Source

Merge pull request #1159 from finn-auto/select-columns-options-fix

correct uidt check to preserve select column options after metadata sync
pull/1356/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
822c3554cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nocodb/src/lib/sqlMgr/code/models/xc/BaseModelXcMeta.ts

4
packages/nocodb/src/lib/sqlMgr/code/models/xc/BaseModelXcMeta.ts

@ -64,8 +64,8 @@ abstract class BaseModelXcMeta extends BaseRender {
columnObj._cn = oldColMeta._cn || columnObj._cn;
columnObj.uidt = oldColMeta.uidt;
if (
(columnObj.dtxp === UITypes.MultiSelect ||
columnObj.dtxp === UITypes.SingleSelect) &&
(columnObj.uidt === UITypes.MultiSelect ||
columnObj.uidt === UITypes.SingleSelect) &&
columnObj.dt !== 'set' &&
columnObj.dt !== 'enum'
) {

Loading…
Cancel
Save