Skip to content

Commit

Permalink
fixup! Fixes #35713 - Host details tab for Debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjaheitmann committed Sep 21, 2023
1 parent c884b35 commit 284b57f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const createBookmarks = ['create_bookmarks'];
export const hidePackagesTab = ({ hostDetails }) => {
const osMatch = hostDetails?.operatingsystem_name?.match(/(\D+) (\d+|\D+)/);
if (!osMatch) return false;
const [, os, version] = osMatch;
const [, os,] = osMatch;
return !(osMatch && os.match(/RedHat|RHEL|CentOS|Rocky|AlmaLinux|Oracle Linux|Suse Linux Enterprise Server/i));
};

Expand Down Expand Up @@ -118,8 +118,6 @@ UpdateVersionsSelect.defaultProps = {
upgradableVersionSelectOpen: null,
};



export const PackagesTab = () => {
const hostDetails = useSelector(state => selectAPIResponse(state, 'HOST_DETAILS'));
const {
Expand Down

0 comments on commit 284b57f

Please sign in to comment.