Skip to content

Commit

Permalink
fix: [AXIMST-785] fixed discard logic (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Apr 30, 2024
1 parent 26a6d9f commit 418bba8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/course-unit/data/thunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { RequestStatus } from '../../data/constants';
import { NOTIFICATION_MESSAGES } from '../../constants';
import { updateModel, updateModels } from '../../generic/model-store';
import { updateClipboardData } from '../../generic/data/slice';
import { PUBLISH_TYPES } from '../constants';
import {
getCourseUnitData,
editUnitDisplayName,
Expand Down Expand Up @@ -138,6 +139,9 @@ export function editCourseUnitVisibilityAndData(itemId, type, isVisible, groupAc
dispatch(updateCourseVerticalChildren(courseVerticalChildrenData));
dispatch(hideProcessingNotification());
dispatch(updateSavingStatus({ status: RequestStatus.SUCCESSFUL }));
if (type === PUBLISH_TYPES.discardChanges) {
window.location.reload();
}
}
});
} catch (error) {
Expand Down

0 comments on commit 418bba8

Please sign in to comment.