fix(editor): Fix problems with credentials modal if no node is opened (#3749)

This commit is contained in:
Milorad FIlipović 2022-07-21 12:50:34 +02:00 committed by GitHub
parent 08841f05a2
commit 5efe4a4c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '';