Skip to content

Commit

Permalink
fix: fixed flow cohorts - Ref gestion-de-projet#2551 (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManelleG authored Apr 16, 2024
1 parent 67de01d commit 9556300
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/Dashboard/Documents/Documents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ const Documents: React.FC<DocumentsProps> = ({ groupId, deidentified }) => {
endDate,
orderBy,
searchBy,
searchInput
searchInput,
groupId
])

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/ImagingList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const ImagingList = ({ groupId, deidentified }: ImagingListProps) => {
useEffect(() => {
setLoadingStatus(LoadingStatus.IDDLE)
setPage(1)
}, [ipp, nda, startDate, endDate, orderBy, searchInput, executiveUnits, modality])
}, [ipp, nda, startDate, endDate, orderBy, searchInput, executiveUnits, modality, groupId])

useEffect(() => {
setLoadingStatus(LoadingStatus.IDDLE)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/PatientList/PatientList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const PatientList = ({ groupId, total, deidentified }: PatientListProps) => {
useEffect(() => {
setLoadingStatus(LoadingStatus.IDDLE)
setPage(1)
}, [genders, vitalStatuses, birthdatesRanges, orderBy, searchBy, searchInput])
}, [genders, vitalStatuses, birthdatesRanges, orderBy, searchBy, searchInput, groupId])

useEffect(() => {
setLoadingStatus(LoadingStatus.IDDLE)
Expand Down

0 comments on commit 9556300

Please sign in to comment.