mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Fix problems with credentials modal if no node is opened (#3749)
This commit is contained in:
committed by
GitHub
parent
08841f05a2
commit
5efe4a4c54
@@ -151,8 +151,6 @@ export default mixins(restApi).extend({
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
const appName = getAppNameFromCredType(
|
||||
(this.credentialType as ICredentialType).displayName,
|
||||
);
|
||||
@@ -165,7 +163,7 @@ export default mixins(restApi).extend({
|
||||
documentationUrl(): string {
|
||||
const type = this.credentialType as ICredentialType;
|
||||
const activeNode = this.$store.getters.activeNode;
|
||||
const isCommunityNode = isCommunityPackageName(activeNode.type);
|
||||
const isCommunityNode = activeNode ? isCommunityPackageName(activeNode.type) : false;
|
||||
|
||||
if (!type || !type.documentationUrl) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user