Prevent extra fetch of cred list as cred modal is closing

This commit is contained in:
mabashian 2019-02-12 15:37:45 -05:00
parent 52b88d839e
commit 406cb07018

View File

@ -117,7 +117,7 @@ function multiCredentialModalController(GetBasePath, qs, MultiCredentialService)
}));
const watchType = scope.$watch('credentialType', (newValue, oldValue) => {
if (newValue !== oldValue) {
if (newValue && newValue !== oldValue) {
fetchCredentials(parseInt(newValue));
}
});