File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ export function* applicationLoaded(action) {
3434 } else if ( isString ( action . payload . snapshotKey ) ) {
3535 yield call ( importSnapshot , action ) ;
3636 } else if ( action . payload . rehydratedProject ) {
37- yield call ( rehydrateProject , action ) ;
37+ yield put (
38+ projectRestoredFromLastSession ( action . payload . rehydratedProject ) ,
39+ ) ;
3840 } else {
3941 yield call ( createProject ) ;
4042 }
@@ -50,10 +52,6 @@ export function* changeCurrentProject() {
5052 yield call ( saveCurrentProject , state ) ;
5153}
5254
53- export function * rehydrateProject ( { payload : { rehydratedProject} } ) {
54- yield put ( projectRestoredFromLastSession ( rehydratedProject ) ) ;
55- }
56-
5755export function * importSnapshot ( { payload : { snapshotKey} } ) {
5856 try {
5957 const snapshot = yield call ( loadProjectSnapshot , snapshotKey ) ;
You can’t perform that action at this time.
0 commit comments