-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [AXIMST-558] Course unit - Fixed loading errors and PropTypes (#199
- Loading branch information
1 parent
07819b8
commit a68fc60
Showing
5 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import { createSelector } from '@reduxjs/toolkit'; | ||
import { RequestStatus } from 'CourseAuthoring/data/constants'; | ||
|
||
export const getCourseUnitData = (state) => state.courseUnit.unit; | ||
export const getCanEdit = (state) => state.courseUnit.canEdit; | ||
export const getStaticFileNotices = (state) => state.courseUnit.staticFileNotices; | ||
export const getCourseUnit = (state) => state.courseUnit; | ||
export const getSavingStatus = (state) => state.courseUnit.savingStatus; | ||
export const getLoadingStatus = (state) => state.courseUnit.loadingStatus; | ||
export const getSequenceStatus = (state) => state.courseUnit.sequenceStatus; | ||
export const getSequenceIds = (state) => state.courseUnit.courseSectionVertical.courseSequenceIds; | ||
export const getCourseSectionVertical = (state) => state.courseUnit.courseSectionVertical; | ||
export const getCourseId = (state) => state.courseDetail.courseId; | ||
export const getSequenceId = (state) => state.courseUnit.sequenceId; | ||
export const getCourseVerticalChildren = (state) => state.courseUnit.courseVerticalChildren; | ||
export const getClipboardData = state => state.courseUnit.clipboardData; | ||
export const getClipboardData = (state) => state.courseUnit.clipboardData; | ||
const getLoadingStatuses = (state) => state.courseUnit.loadingStatus; | ||
export const getIsLoading = createSelector( | ||
[getLoadingStatuses], | ||
loadingStatus => Object.values(loadingStatus) | ||
.some((status) => status === RequestStatus.IN_PROGRESS), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters