Browse Source

Merge pull request #4891 from gitstart/NCDBOSS-11

feat: Remove or set optional toLowerCase() on Single/Multi Section Type
pull/4897/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
a817ac9269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui/utils/parsers/parserHelpers.ts

4
packages/nc-gui/utils/parsers/parserHelpers.ts

@ -64,7 +64,7 @@ export const extractMultiOrSingleSelectProps = (colData: []) => {
: [],
)
const uniqueVals = [...new Set(flattenedVals.map((v: any) => v.toString().trim().toLowerCase()))]
const uniqueVals = [...new Set(flattenedVals.map((v: any) => v.toString().trim()))]
if (uniqueVals.length > maxSelectOptionsAllowed) {
// too many options are detected, convert the column to SingleLineText instead
@ -81,7 +81,7 @@ export const extractMultiOrSingleSelectProps = (colData: []) => {
colProps.dtxp = `${uniqueVals.map((v) => `'${v.replace(/'/gi, "''")}'`).join(',')}`
}
} else {
const uniqueVals = [...new Set(colData.map((v: any) => v.toString().trim().toLowerCase()))]
const uniqueVals = [...new Set(colData.map((v: any) => v.toString().trim()))]
if (uniqueVals.length > maxSelectOptionsAllowed) {
// too many options are detected, convert the column to SingleLineText instead

Loading…
Cancel
Save