diff --git a/packages/editor-ui/src/modules/credentials.ts b/packages/editor-ui/src/modules/credentials.ts index 9f2b70c7c0..ac20203608 100644 --- a/packages/editor-ui/src/modules/credentials.ts +++ b/packages/editor-ui/src/modules/credentials.ts @@ -98,7 +98,7 @@ const module: Module = { }, getCredentialsByType: (state: ICredentialsState, getters: any) => { // tslint:disable-line:no-any return (credentialType: string): ICredentialsResponse[] => { - return getters.allCredentialsByType[credentialType]; + return getters.allCredentialsByType[credentialType] || []; }; }, getNodesWithAccess (state: ICredentialsState, getters: any, rootState: IRootState, rootGetters: any) { // tslint:disable-line:no-any