[unreleased bug] Fleet UI: Fix UI to expect null values instead of undefined values for orbit and fleetd versions (#18208)

This commit is contained in:
RachelElysia 2024-04-11 16:28:42 -04:00 committed by GitHub
parent 5eb8cf618e
commit 6a70f2ab78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -269,8 +269,8 @@ export interface IHost {
uuid: string;
platform: string;
osquery_version: string;
orbit_version?: string;
fleet_desktop_version?: string;
orbit_version: string | null;
fleet_desktop_version: string | null;
os_version: string;
build: string;
platform_like: string; // TODO: replace with more specific union type

View file

@ -321,7 +321,7 @@ const HostSummary = ({
if (platform === "chrome") {
return <DataSet title="Agent" value={summaryData.osquery_version} />;
}
if (summaryData.orbit_version) {
if (summaryData.orbit_version !== DEFAULT_EMPTY_CELL_VALUE) {
return (
<DataSet
title="Agent"
@ -332,7 +332,8 @@ const HostSummary = ({
osquery: {summaryData.osquery_version}
<br />
Orbit: {summaryData.orbit_version}
{summaryData.fleet_desktop_version && (
{summaryData.fleet_desktop_version !==
DEFAULT_EMPTY_CELL_VALUE && (
<>
<br />
Fleet Desktop: {summaryData.fleet_desktop_version}