mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Prevent workflow breaking when credential type is unknown (#6923)
This commit is contained in:
@@ -35,10 +35,12 @@ export default defineComponent({
|
||||
const oauth1Api = this.$locale.baseText('generic.oauth1Api');
|
||||
const oauth2Api = this.$locale.baseText('generic.oauth2Api');
|
||||
|
||||
return this.credentialsStore
|
||||
.getCredentialTypeByName(this.activeCredentialType)
|
||||
.displayName.replace(new RegExp(`${oauth1Api}|${oauth2Api}`), '')
|
||||
.trim();
|
||||
return (
|
||||
this.credentialsStore
|
||||
.getCredentialTypeByName(this.activeCredentialType)
|
||||
?.displayName.replace(new RegExp(`${oauth1Api}|${oauth2Api}`), '')
|
||||
.trim() || ''
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user