Skip to content

Commit

Permalink
Merge branch 'feat/COT-85_implement_excel_export' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
WONYOUNG-HC committed Jan 31, 2025
2 parents 72dcace + b1f1187 commit b89e786
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ const AttendanceReportExcelExportModal = ({
*/
const handleCheckboxChange = (attendance: CotatoAttendanceWithSessionResponse) => {
if (attendance.sessionId === ALL_SESSION_ID) {
if (checkedAttendances.length === 1 && checkedAttendances[0].sessionId === ALL_SESSION_ID) {
if (checkedAttendances.some((a) => a.sessionId === ALL_SESSION_ID)) {
setCheckedAttendances([]);
} else {
setCheckedAttendances([attendance]);
setCheckedAttendances([...attendancesWithAll]);
}
} else {
if (checkedAttendances.some((a) => a.sessionId === ALL_SESSION_ID)) {
Expand Down

0 comments on commit b89e786

Please sign in to comment.