Skip to content

Commit

Permalink
Merge pull request #438 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #PS-2651 bug: Creating extra/planned session needs to refresh page for second session- fix
  • Loading branch information
itsvick authored Nov 27, 2024
2 parents df1f2b0 + ef1bc3e commit 01c3e16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1512,14 +1512,16 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
// days:
// block?.selectedWeekDays?.join(', ') ||
// editSession?.recurrencePattern?.daysOfWeek,
days: (editSession?.recurrencePattern?.daysOfWeek || [])
.map(
(dayIndex: any) =>
['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][
dayIndex
]
)
.join(', '),
days:
block?.selectedWeekDays?.join(', ') ||
(editSession?.recurrencePattern?.daysOfWeek || [])
.map(
(dayIndex: any) =>
['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][
dayIndex
]
)
.join(', '),
})}
</Typography>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/centers/[cohortId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const CohortPage = () => {
};

const handleCloseSchedule = () => {
setEventCreated(true);
setEventCreated((prev) => !prev);
handleClose();
};

Expand Down

0 comments on commit 01c3e16

Please sign in to comment.