mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI – handle missing vuln.severity (#17143)
This commit is contained in:
parent
28d4991a46
commit
f18786b822
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue