Fleet UI: [unreleased bug] Fix ChromeOS platform no longer showing with API change (#12284)

This commit is contained in:
RachelElysia 2023-06-12 11:28:57 -04:00 committed by GitHub
parent 747c752655
commit b7b8222da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ const parseLabels = (list?: ILabelSummary[]) => {
l.name === "macOS" ||
l.name === "MS Windows" ||
l.name === "All Linux" ||
l.name === "ChromeOS"
l.name === "chrome"
) || [];
const other = list?.filter((l) => l.label_type === "regular") || [];
@ -103,6 +103,8 @@ const TargetPillSelector = ({
return "All hosts";
case "All Linux":
return "Linux";
case "chrome":
return "ChromeOS";
default:
return entity.name || "Missing display name"; // TODO
}