UI – handle missing vuln.severity (#17143)

This commit is contained in:
Jacob Shandling 2024-02-23 17:33:24 -06:00 committed by GitHub
parent 28d4991a46
commit f18786b822
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -459,8 +459,8 @@ export const formatPackForClient = (pack: IPack): IPack => {
return pack;
};
export const formatSeverity = (float: number | null): string => {
if (float === null) {
export const formatSeverity = (float?: number | null): string => {
if (float === null || float === undefined) {
return DEFAULT_EMPTY_CELL_VALUE;
}