Browse Source

correct uidt check to preserve select column options after metadata sync

Signed-off-by: Vijay Kumar Rathore <professional.vijay8492@gmail.com>
pull/1159/head
Vijay Kumar Rathore 3 years ago
parent
commit
de49b7f6c7
  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._cn = oldColMeta._cn || columnObj._cn;
columnObj.uidt = oldColMeta.uidt; columnObj.uidt = oldColMeta.uidt;
if ( if (
(columnObj.dtxp === UITypes.MultiSelect || (columnObj.uidt === UITypes.MultiSelect ||
columnObj.dtxp === UITypes.SingleSelect) && columnObj.uidt === UITypes.SingleSelect) &&
columnObj.dt !== 'set' && columnObj.dt !== 'set' &&
columnObj.dt !== 'enum' columnObj.dt !== 'enum'
) { ) {

Loading…
Cancel
Save