fix importing unknown types with credentials

This commit is contained in:
Mutasem 2021-11-05 16:08:03 +01:00
parent 3ec52c1875
commit d4df77a3d0

View file

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