From 6d6b93195397bf50e7637fdcba66132357f95bea Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 17 Oct 2022 23:46:35 +0800 Subject: [PATCH] fix(nc-gui): isEmailType & isUrlType logic --- packages/nc-gui/utils/parsers/parserHelpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/utils/parsers/parserHelpers.ts b/packages/nc-gui/utils/parsers/parserHelpers.ts index fbcf69bf37..878e7800ac 100644 --- a/packages/nc-gui/utils/parsers/parserHelpers.ts +++ b/packages/nc-gui/utils/parsers/parserHelpers.ts @@ -108,13 +108,13 @@ export const isDecimalType = (colData: []) => }) export const isEmailType = (colData: []) => - !colData.some((v: any) => { - return v && !isEmail(v) + colData.some((v: any) => { + return v && isEmail(v) }) export const isUrlType = (colData: []) => - !colData.some((v: any) => { - return v && !isValidURL(v) + colData.some((v: any) => { + return v && isValidURL(v) }) export const getColumnUIDTAndMetas = (colData: [], defaultType: string) => {