fix vertical stepper bug

This commit is contained in:
Delucse
2020-10-17 09:47:03 +02:00
parent b310d290cf
commit a0fd63a2ca
15 changed files with 39 additions and 106 deletions
+3 -1
View File
@@ -41,6 +41,7 @@ const initialStatus = () => {
const initialState = {
status: initialStatus(),
currentId: null,
currentIndex: null,
activeStep: 0,
change: 0
};
@@ -64,7 +65,8 @@ export default function (state = initialState, action) {
case TUTORIAL_ID:
return {
...state,
currentId: action.payload
currentId: action.payload,
currentIndex: tutorials.findIndex(tutorial => tutorial.id === action.payload)
}
case TUTORIAL_STEP:
return {