fix: Fixed loading logic for vulnerability tab

Signed-off-by: Raul Kele <raulkeleblk@gmail.com>
This commit is contained in:
Raul Kele 2022-10-25 09:04:34 +03:00
parent 17e62d6441
commit a0200cfb68

View File

@ -194,11 +194,12 @@ function VulnerabilitiesDetails(props) {
cveList: cveInfo?.CVEList
};
setCveData(cveListData);
setIsLoading(false);
}
setIsLoading(false);
})
.catch((e) => {
console.error(e);
setIsLoading(false);
setCveData({});
});
return () => {