mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix edge case in endpoint
This commit is contained in:
parent
77747f8455
commit
04997c5184
|
@ -296,6 +296,9 @@ export class CredentialsHelper extends ICredentialsHelper {
|
|||
getScopes(type: string): string[] {
|
||||
const scopeProperty = this.getCredentialsProperties(type).find(({ name }) => name === 'scope');
|
||||
|
||||
// edge case: scope property exists but is required to be empty string, e.g. GoToWebinar
|
||||
if (scopeProperty?.default === '') return [];
|
||||
|
||||
if (!scopeProperty?.default || typeof scopeProperty.default !== 'string') {
|
||||
const errorMessage = `No \`scope\` property found for credential type: ${type}`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue