mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
[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:
parent
5eb8cf618e
commit
6a70f2ab78
2 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue