Skip to content

Commit

Permalink
fix(THEEDGE-3757): add validation to imageset (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
acosferreira authored Dec 15, 2023
1 parent fb656c6 commit 24c787d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GroupSystems/GroupImmutableSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => {

//enable disable bulk update based on selection, must refactor
useEffect(() => {
if (selected.size > 0) {
if (selected.size > 0 && deviceImageSet?.size > 0) {
return () => {
[...selected.keys()].map((s) => {
const img = deviceImageSet[s];
Expand All @@ -201,7 +201,7 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => {
setUpdateImageSet(imageSet);
};
}
}, [deviceData, selected]);
}, [deviceData, selected, deviceImageSet]);
return (
<div id="group-systems-table">
{addToGroupModalOpen && (
Expand Down

0 comments on commit 24c787d

Please sign in to comment.