definig specific error in step component

This commit is contained in:
Delucse
2020-09-20 16:22:07 +02:00
parent b03ef6b54a
commit e20a40aaf5
7 changed files with 39 additions and 43 deletions
+3 -1
View File
@@ -245,7 +245,9 @@ export const readJSON = (json) => (dispatch, getState) => {
dispatch(resetTutorial());
dispatch({
type: BUILDER_ERROR,
payload: {steps: [{},{}]}
payload: {
steps: new Array(json.steps.length).fill({})
}
});
dispatch(tutorialTitle(json.title));
dispatch(tutorialId(json.id));