mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 05:29:42 -08:00
fix importing unknown types with credentials
This commit is contained in:
parent
3ec52c1875
commit
d4df77a3d0
|
@ -98,7 +98,7 @@ const module: Module<ICredentialsState, IRootState> = {
|
|||
},
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue