Skip to content

Commit

Permalink
display cohorts under assign devices to cohort
Browse files Browse the repository at this point in the history
  • Loading branch information
Codebmk committed Dec 10, 2024
1 parent 06938fd commit 186ab8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netmanager/src/views/pages/CohortsRegistry/CohortDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ const AssignCohortDeviceForm = ({ cohortID, cohortDevices, open, handleClose })
});

setDeviceOptions(nonCohortDevices);
} else if (!isEmpty(allDevices)) {
setDeviceOptions(createDeviceOptions(Object.values(allDevices)));
} else {
setDeviceOptions([]);
}
}, [allDevices]);

Expand Down

0 comments on commit 186ab8e

Please sign in to comment.