mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +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 '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const appName = getAppNameFromCredType(
|
const appName = getAppNameFromCredType(
|
||||||
(this.credentialType as ICredentialType).displayName,
|
(this.credentialType as ICredentialType).displayName,
|
||||||
);
|
);
|
||||||
@@ -165,7 +163,7 @@ export default mixins(restApi).extend({
|
|||||||
documentationUrl(): string {
|
documentationUrl(): string {
|
||||||
const type = this.credentialType as ICredentialType;
|
const type = this.credentialType as ICredentialType;
|
||||||
const activeNode = this.$store.getters.activeNode;
|
const activeNode = this.$store.getters.activeNode;
|
||||||
const isCommunityNode = isCommunityPackageName(activeNode.type);
|
const isCommunityNode = activeNode ? isCommunityPackageName(activeNode.type) : false;
|
||||||
|
|
||||||
if (!type || !type.documentationUrl) {
|
if (!type || !type.documentationUrl) {
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user