File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ class GradingWorkspace extends React.Component<GradingWorkspaceProps> {
103103 private sideContentProps : ( p : GradingWorkspaceProps ) => SideContentProps = (
104104 props : GradingWorkspaceProps
105105 ) => ( {
106- activeTab : 0 ,
107- handleChangeActiveTab : ( aT : number ) => { } ,
106+ activeTab : props . activeTab ,
107+ handleChangeActiveTab : props . handleChangeActiveTab ,
108108 tabs : [
109109 {
110110 label : `Grading: Question ${ props . questionId } ` ,
Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ class AssessmentWorkspace extends React.Component<
123123 private sideContentProps : ( p : AssessmentWorkspaceProps ) => SideContentProps = (
124124 props : AssessmentWorkspaceProps
125125 ) => ( {
126- activeTab : 0 ,
127- handleChangeActiveTab : ( aT : number ) => { } ,
126+ activeTab : props . activeTab ,
127+ handleChangeActiveTab : props . handleChangeActiveTab ,
128128 tabs : [
129129 {
130130 label : `Task ${ props . questionId } ` ,
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const reducer: Reducer<IWorkspaceManagerState> = (
5353 ...state ,
5454 [ location ] : {
5555 ...state [ location ] ,
56- sideContentActiveTab : action . payload
56+ sideContentActiveTab : action . payload . activeTab
5757 }
5858 }
5959 case CHANGE_EDITOR_WIDTH :
You can’t perform that action at this time.
0 commit comments