Skip to content

Commit

Permalink
Merge pull request #260 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #000 fix :delete session issue fixed
  • Loading branch information
itsvick authored Sep 13, 2024
2 parents 5395a3a + c3e167b commit 3e68b6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@
"START_DATE": "Start Date",
"END_DATE": "End Date",
"REMOVE_THIS_SESSION": "Remove this session",
"REMOVE_TOPIC_SUBTOPIC": "Remove the topic and subtopic",
"PLANNED_SESSION": "Planned Session",
"FIXES_SUBJECTS": "For fixed subjects in the timetable",
"EXTRA_SESSION": "Extra Sessions",
Expand Down
6 changes: 5 additions & 1 deletion src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,14 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
deleteSelection !== t('CENTER_SESSION.EDIT_THIS_SESSION');

const eventRepetitionId = eventData?.eventRepetitionId;

const userId =
typeof window !== 'undefined'
? localStorage.getItem('userId') || ''
: '';
const apiBody = {
isMainEvent: isMainEvent,
status: 'archived',
updatedBy: userId,
};
const response = await editEvent(eventRepetitionId, apiBody);
if (response?.responseCode === 'OK') {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopicDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const TopicDetails: React.FC<TopicDetailsProps> = ({
: undefined
}
>
{t('CENTER_SESSION.REMOVE_THIS_SESSION')}
{t('CENTER_SESSION.REMOVE_TOPIC_SUBTOPIC')}
</Box>
<DeleteOutlineIcon
sx={{
Expand Down

0 comments on commit 3e68b6c

Please sign in to comment.