From 3fe173369b4b0a60fa70cd684480886a277b8a2c Mon Sep 17 00:00:00 2001 From: Georgii Karataev Date: Fri, 1 Mar 2024 13:13:48 +0100 Subject: [PATCH] fix(RHINENG-8372): Fix Group details not loading Edge devices (#2155) 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. --- src/components/GroupSystems/GroupImmutableSystems.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/GroupSystems/GroupImmutableSystems.js b/src/components/GroupSystems/GroupImmutableSystems.js index a16771892..08721f623 100644 --- a/src/components/GroupSystems/GroupImmutableSystems.js +++ b/src/components/GroupSystems/GroupImmutableSystems.js @@ -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, @@ -271,7 +271,9 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => { { title: (