Skip to content

Commit

Permalink
Gestion "null" > liste des enfants à charges (#4645)
Browse files Browse the repository at this point in the history
* fix: gestion valeur null enfants

* Update src/router.ts

Co-authored-by: Simon Hamery <[email protected]>

* fix: lint prettier

---------

Co-authored-by: Simon Hamery <[email protected]>
  • Loading branch information
jenovateurs and Shamzic authored Oct 16, 2024
1 parent 626cff5 commit 40c4729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ router.beforeEach((to, from, next) => {

if (current.includes(enfantPath)) {
const id_enfant = current.split(enfantPath)[1].split("/")[0]
const hasStoreChild = store.situation.enfants.find(
const hasStoreChild = store.situation.enfants?.some(
(enfant) => enfant.id === `enfant_${id_enfant}`
)

Expand Down

0 comments on commit 40c4729

Please sign in to comment.