Skip to content

Commit

Permalink
fix(RHINENG-8372): Fix Group details not loading Edge devices (#2155)
Browse files Browse the repository at this point in the history
Fixes https://issues.redhat.com/browse/RHINENG-8372.

The Immutable tab was playing up because of the deviceData being undefined or null which was not treated as a separate edge case.
  • Loading branch information
gkarat authored Mar 1, 2024
1 parent a230a96 commit 3fe1733
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/GroupSystems/GroupImmutableSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => {
);

const getUpdateInfo = useGetInventoryGroupUpdateInfo();
const [deviceData, setDeviceData] = useState();
const [deviceData, setDeviceData] = useState(null);
const [deviceImageSet, setDeviceImageSet] = useState();
const [updateModal, setUpdateModal] = useState({
isOpen: false,
Expand Down Expand Up @@ -271,7 +271,9 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => {
{
title: (
<ActionDropdownItem
isAriaDisabled={!deviceData.includes(row.id)}
isAriaDisabled={
deviceData === null || !deviceData.includes(row.id)
}
requiredPermissions={REQUIRED_PERMISSIONS_TO_MODIFY_GROUP(
groupId
)}
Expand Down

0 comments on commit 3fe1733

Please sign in to comment.