This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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) {
2222 return { type : Type . SET_POSITION , payload : { position : position } } ;
2323}
2424exports . setPosition = setPosition ;
25- function loadTutorial ( name ) {
26- package_1 . default . selectPackage ( name ) ;
25+ function loadTutorial ( tutorial ) {
26+ package_1 . default . selectPackage ( tutorial . name ) ;
2727 _base_1 . store . dispatch ( setProject ( ) ) ;
2828 _base_1 . store . dispatch ( setPosition ( { chapter : 0 , page : 0 } ) ) ;
2929 _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 {
2525 return { type : Type . SET_POSITION , payload : { position } } ;
2626}
2727
28- export function loadTutorial ( name : string ) : void {
29- Package . selectPackage ( name ) ;
28+ export function loadTutorial ( tutorial : CR . Tutorial ) : void {
29+ Package . selectPackage ( tutorial . name ) ;
3030 store . dispatch ( setProject ( ) ) ;
3131 store . dispatch ( setPosition ( { chapter : 0 , page : 0 } ) ) ;
3232 store . dispatch ( setProgress ( ) ) ;
You can’t perform that action at this time.
0 commit comments