This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
lib/reducers/editor-actions
src/reducers/editor-actions Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ function editorActionsReducer(editorActions, action) {
1616 var actions = null ;
1717 switch ( action . type ) {
1818 case _types_1 . TESTS_LOAD :
19+ if ( store_1 . default . getState ( ) . progress . pages [ store_1 . default . getState ( ) . pagePosition ] ) {
20+ return [ ] ;
21+ }
1922 taskTracker = 0 ;
2023 actions = store_1 . default . getState ( ) . tasks . map ( function ( task ) { return task . actions || [ ] ; } ) ;
2124 handleEditorActions ( actions ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export default function editorActionsReducer(
2222 switch ( action . type ) {
2323
2424 case TESTS_LOAD :
25+
26+ if ( store . getState ( ) . progress . pages [ store . getState ( ) . pagePosition ] ) {
27+ return [ ] ;
28+ }
2529 taskTracker = 0 ;
2630 actions = store . getState ( ) . tasks . map ( task => task . actions || [ ] ) ;
2731 handleEditorActions ( actions ) ; // run first action
Original file line number Diff line number Diff line change 121121 " src/components/AppMenu/CloseWindow.tsx" ,
122122 " src/components/AppMenu/index.tsx" ,
123123 " src/components/AppMenu/issuesLink.tsx" ,
124- " src/components/AppMenu/MenuIconRight .tsx" ,
124+ " src/components/AppMenu/menuIconRight .tsx" ,
125125 " src/components/AppMenu/MenuLink/index.tsx" ,
126126 " src/components/AppMenu/menuRight.tsx" ,
127127 " src/components/AppMenu/menuRightRouteOptions.tsx" ,
128128 " src/components/AppMenu/Quit/index.tsx" ,
129129 " src/components/Common/RouteButton.tsx" ,
130130 " src/components/FinalPage/index.tsx" ,
131- " src/components/Hold/index.tsx" ,
132131 " src/components/Markdown/index.tsx" ,
133132 " src/components/Page/EditPage/index.tsx" ,
134133 " src/components/Page/Hints/HintButton.tsx" ,
You can’t perform that action at this time.
0 commit comments