Browse Source

feat: Remove or set optional toLowerCase() on Single/Multi Section Type

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: beejaybot <akisanyamobolaji@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
Co-authored-by: Mayomi Ayandiran <ayandiranmayomi@gmail.com>
pull/4891/head
gitstart 2 years ago
parent
commit
c1e9dcde50
  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