Skip to content

Commit

Permalink
added missing log function for console, added setting latestSession f…
Browse files Browse the repository at this point in the history
…or "Save session" to proper complete saving cycle
  • Loading branch information
matej-vavrek committed Mar 5, 2020
1 parent 0fd4079 commit afc66ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/nglView/nglProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const NglProvider = memo(props => {
case 1:
return filteredList[0];
default:
console(new Error('Cannot found NGL View with given ID!'));
console.log(new Error('Cannot found NGL View with given ID!'));
break;
}
};
Expand Down
2 changes: 2 additions & 0 deletions js/components/session/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ export const reloadScene = ({ saveType, newSessionFlag, nextUuid, uuid, sessionI
data: JSON.stringify(formattedState)
}).then(response => {
dispatch(updateCurrentTarget(response.data));
// latest session should be set also because of proper saving cycle
dispatch(setLatestSession(uuid));
});
} else if (saveType === savingTypeConst.snapshotNew) {
const uuidv4 = require('uuid/v4');
Expand Down

0 comments on commit afc66ce

Please sign in to comment.