From 7a4336a4a0f566f68aeb6ad3f2f1f249bbd31b78 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 28 Jun 2024 13:19:35 +0100 Subject: [PATCH] Quick fix to allow case sensitive versions of the prohibited columns, this is allowed on the backend and many apps like this exist, there isn't really any reason to disallow this anymore. --- .../backend/DataTable/modals/CreateEditColumn.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index d79eedd194..e1ef6f1036 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -495,11 +495,7 @@ newError.name = `Column name cannot start with an underscore.` } else if (fieldInfo.name && !fieldInfo.name.match(ValidColumnNameRegex)) { newError.name = `Illegal character; must be alpha-numeric.` - } else if ( - prohibited.some( - name => fieldInfo?.name?.toLowerCase() === name.toLowerCase() - ) - ) { + } else if (prohibited.some(name => fieldInfo?.name === name)) { newError.name = `${prohibited.join( ", " )} are not allowed as column names - case insensitive.`