2
0

🐛 (nocodb) Automatically ignore trailing slash for baseURL

Closes #1566
This commit is contained in:
Baptiste Arnaud
2024-06-14 09:56:44 +02:00
parent 98699738d7
commit ff16706d7d

View File

@ -5,13 +5,15 @@ export const auth = {
type: 'encryptedCredentials',
name: 'NocoDB account',
schema: option.object({
baseUrl: option.string.layout({
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,