⬆ MAJ des dépendances
A nécessité de modifier quelques types suite à la modification du typage des dépendancespull/824/head
parent
c5ec209020
commit
f613fbcc9f
|
@ -313,9 +313,10 @@ export let nextStepsSelector = createSelector(
|
|||
|
||||
// L'ajout de la réponse permet de traiter les questions dont la réponse est "une possibilité", exemple "contrat salarié . cdd"
|
||||
let lastStep = last(foldedSteps),
|
||||
lastStepWithAnswer = situation[lastStep]
|
||||
? ([lastStep, situation[lastStep]].join(' . ') as DottedName)
|
||||
: lastStep
|
||||
lastStepWithAnswer =
|
||||
lastStep && situation[lastStep]
|
||||
? ([lastStep, situation[lastStep]].join(' . ') as DottedName)
|
||||
: lastStep
|
||||
|
||||
nextSteps = sortBy(
|
||||
question =>
|
||||
|
|
|
@ -51,8 +51,11 @@ const activitéReducer = reducerActivité =>
|
|||
}
|
||||
})
|
||||
|
||||
// type ActivityTitle = string
|
||||
// type State = Record<ActivityTitle, ReturnType<ReturnType<typeof activitéReducer>>>
|
||||
|
||||
let reducer = reduceReducers(
|
||||
(state, { type, activité }: Action) => {
|
||||
((state, { type, activité }: Action) => {
|
||||
if (type === 'TOGGLE_ACTIVITÉ_EFFECTUÉE' && state[activité].effectuée) {
|
||||
return getSousActivités(activité).reduce(
|
||||
(newState, sousActivité) => ({
|
||||
|
@ -67,7 +70,7 @@ let reducer = reduceReducers(
|
|||
)
|
||||
}
|
||||
return state
|
||||
},
|
||||
}) as any,
|
||||
combineReducers(
|
||||
flatActivités.reduce(
|
||||
(reducers, { titre }) => ({
|
||||
|
@ -76,7 +79,7 @@ let reducer = reduceReducers(
|
|||
}),
|
||||
{}
|
||||
)
|
||||
)
|
||||
) as any
|
||||
)
|
||||
|
||||
export default reducer
|
||||
|
|
Loading…
Reference in New Issue