parent
6611d9f91b
commit
9945915f5a
2 changed files with 5 additions and 6 deletions
@ -1,7 +1,7 @@ |
|||||||
const hostsSanitizer = ( |
const hostsSanitizer = ( |
||||||
data: Array<AnvilStatusHost>, |
data: Array<AnvilStatusHost>, |
||||||
): Array<AnvilStatusHost> => { |
): Array<AnvilStatusHost> => { |
||||||
return data.filter((host) => host.host_uuid); |
return data?.filter((host) => host.host_uuid); |
||||||
}; |
}; |
||||||
|
|
||||||
export default hostsSanitizer; |
export default hostsSanitizer; |
||||||
|
Loading…
Reference in new issue