mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -08:00
fix(editor): Fix problems with credentials modal if no node is opened (#3749)
This commit is contained in:
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 '';
|
||||
|
|
Loading…
Reference in a new issue