Skip to content

Commit

Permalink
Merge pull request #635 from AkshataKatwal16/reassign-cohorts
Browse files Browse the repository at this point in the history
Issue feat: set setloading false if there is no child data for TL Block
  • Loading branch information
Shubham4026 authored Jan 22, 2025
2 parents 621327e + 450dea4 commit b4e48fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/CohortSelectionSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ const CohortSelectionSection: React.FC<CohortSelectionSectionProps> = ({


setCohortsData(filteredData);

if(response[0].childData.length===0)
{
setLoading(false);
}
if (filteredData.length > 0) {
if (typeof window !== 'undefined' && window.localStorage) {
const cohort = localStorage.getItem('classId') || '';
Expand Down

0 comments on commit b4e48fb

Please sign in to comment.