Fix MDM solution name filter text (#7287)

This commit is contained in:
Luke Heath 2022-08-18 08:45:54 -05:00 committed by GitHub
parent e2022c67db
commit 1a5e1ff56e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1264,7 +1264,7 @@ const ManageHostsPage = ({
const renderMDMSolutionFilterBlock = () => {
if (mdmSolutionDetails) {
const { name, server_url } = mdmSolutionDetails;
const buttonText = `${name !== "Unknown" && name} ${server_url}`;
const buttonText = name ? `${name} ${server_url}` : `${server_url}`;
return (
<div className={`${baseClass}__mdm-solution-filter-block`}>
<div>