Browse Source

fix: include percent field meta during import

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
test/percent
Raju Udava 2 years ago
parent
commit
6397ad0b6b
  1. 16
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

16
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -399,6 +399,18 @@ export default async (
.join(',');
return { type: 'select', data: csvOpt };
}
case 'number':
if (col.typeOptions?.format === 'percentV2')
return {
type: UITypes.Percent,
data: {
percentOption: col.typeOptions?.precision,
allowNegativeNumber: col.typeOptions?.negative,
},
};
return { type: undefined };
default:
return { type: undefined };
}
@ -510,6 +522,10 @@ export default async (
ncCol.dtxp = colOptions.data;
break;
case UITypes.Percent:
ncCol.meta = colOptions.data;
break;
case undefined:
break;
}

Loading…
Cancel
Save