⬆ MAJ des dépendances

A nécessité de modifier quelques types suite à la modification du typage
des dépendances
pull/824/head
Maxime Quandalle 2019-12-27 12:07:04 +01:00
parent c5ec209020
commit f613fbcc9f
3 changed files with 1675 additions and 1808 deletions

View File

@ -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 =>

View File

@ -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

3467
yarn.lock

File diff suppressed because it is too large Load Diff