diff --git a/packages/forge/blocks/nocodb/auth.ts b/packages/forge/blocks/nocodb/auth.ts index 9fefa6d6a..648ff4f9b 100644 --- a/packages/forge/blocks/nocodb/auth.ts +++ b/packages/forge/blocks/nocodb/auth.ts @@ -5,13 +5,15 @@ export const auth = { type: 'encryptedCredentials', name: 'NocoDB account', schema: option.object({ - baseUrl: option.string.layout({ - label: 'Base URL', - isRequired: true, - helperText: 'Change it only if you are self-hosting NocoDB.', - withVariableButton: false, - defaultValue: defaultBaseUrl, - }), + baseUrl: option.string + .layout({ + label: 'Base URL', + isRequired: true, + helperText: 'Change it only if you are self-hosting NocoDB.', + withVariableButton: false, + defaultValue: defaultBaseUrl, + }) + .transform((value) => value?.replace(/\/$/, '')), apiKey: option.string.layout({ label: 'API Token', isRequired: true,