Browse Source

fix(nc-gui): isEmailType & isUrlType logic

pull/4135/head
Wing-Kam Wong 2 years ago
parent
commit
6d6b931953
  1. 8
      packages/nc-gui/utils/parsers/parserHelpers.ts

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

@ -108,13 +108,13 @@ export const isDecimalType = (colData: []) =>
}) })
export const isEmailType = (colData: []) => export const isEmailType = (colData: []) =>
!colData.some((v: any) => { colData.some((v: any) => {
return v && !isEmail(v) return v && isEmail(v)
}) })
export const isUrlType = (colData: []) => export const isUrlType = (colData: []) =>
!colData.some((v: any) => { colData.some((v: any) => {
return v && !isValidURL(v) return v && isValidURL(v)
}) })
export const getColumnUIDTAndMetas = (colData: [], defaultType: string) => { export const getColumnUIDTAndMetas = (colData: [], defaultType: string) => {

Loading…
Cancel
Save