File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ function setPosition(position) {
22
22
return { type : Type . SET_POSITION , payload : { position : position } } ;
23
23
}
24
24
exports . setPosition = setPosition ;
25
- function loadTutorial ( name ) {
26
- package_1 . default . selectPackage ( name ) ;
25
+ function loadTutorial ( tutorial ) {
26
+ package_1 . default . selectPackage ( tutorial . name ) ;
27
27
_base_1 . store . dispatch ( setProject ( ) ) ;
28
28
_base_1 . store . dispatch ( setPosition ( { chapter : 0 , page : 0 } ) ) ;
29
29
_base_1 . store . dispatch ( setProgress ( ) ) ;
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export function setPosition(position: CR.Position): CR.Action {
25
25
return { type : Type . SET_POSITION , payload : { position } } ;
26
26
}
27
27
28
- export function loadTutorial ( name : string ) : void {
29
- Package . selectPackage ( name ) ;
28
+ export function loadTutorial ( tutorial : CR . Tutorial ) : void {
29
+ Package . selectPackage ( tutorial . name ) ;
30
30
store . dispatch ( setProject ( ) ) ;
31
31
store . dispatch ( setPosition ( { chapter : 0 , page : 0 } ) ) ;
32
32
store . dispatch ( setProgress ( ) ) ;
You can’t perform that action at this time.
0 commit comments