File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ try {
333333 await updateQuestions ( ) ;
334334 if ( params ?. question ) toggleQuestion ( null , params . question ) ;
335335 }
336- if ( document . getElementById ( "course-period-input" ) && ! loadedSegmentEditor && ! loadedSegmentCreator && ! noReloadCourse ) {
336+ if ( document . getElementById ( "course-period-input" ) && ! loadedSegmentEditor && ! noReloadCourse ) {
337337 document . getElementById ( "course-period-input" ) . value = ( storage . get ( 'period' ) && courses . find ( c => String ( c . id ) === String ( storage . get ( 'period' ) ) ) ) ? storage . get ( 'period' ) : ( ( ( ui . defaultCourse !== null ) && courses . find ( c => String ( c . id ) === String ( ui . defaultCourse ) ) ) ? ui . defaultCourse : courses . find ( c => responses . some ( r => JSON . parse ( c . periods ) . includes ( Number ( String ( r . seatCode ) [ 0 ] ) ) ) ) ? courses . find ( c => responses . some ( r => JSON . parse ( c . periods ) . includes ( Number ( String ( r . seatCode ) [ 0 ] ) ) ) ) . id : courses . sort ( ( a , b ) => a . id - b . id ) [ 0 ] ?. id ) ;
338338 if ( document . getElementById ( "export-report-course" ) ) document . getElementById ( "export-report-course" ) . value = ( storage . get ( 'period' ) && courses . find ( c => String ( c . id ) === String ( storage . get ( 'period' ) ) ) ) ? storage . get ( 'period' ) : ( ( ( ui . defaultCourse !== null ) && courses . find ( c => String ( c . id ) === String ( ui . defaultCourse ) ) ) ? ui . defaultCourse : courses . find ( c => responses . some ( r => JSON . parse ( c . periods ) . includes ( Number ( String ( r . seatCode ) [ 0 ] ) ) ) ) ? courses . find ( c => responses . some ( r => JSON . parse ( c . periods ) . includes ( Number ( String ( r . seatCode ) [ 0 ] ) ) ) ) . id : courses . sort ( ( a , b ) => a . id - b . id ) [ 0 ] ?. id ) ;
339339 }
You can’t perform that action at this time.
0 commit comments