Skip to content

Commit

Permalink
Don't delete arbeidsliste if there is error with saving huskelapp. (#566
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dragutin-nav committed Jun 18, 2024
1 parent e435e08 commit 141f951
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,14 @@ function HuskelappRedigereModal() {
.then(() => fetchHuskelapp(brukerFnr.toString(), enhetId ?? ''))
.then(res => res.data)
.then(setHuskelapp)
.then(() => {
slettArbeidslisteMenIkkeFargekategori(brukerFnr)
.then(res => res.data)
.then(setArbeidsliste)
.catch(showErrorModal);
})
.then(showHuskelappModal)
.catch(showErrorModal);
slettArbeidslisteMenIkkeFargekategori(brukerFnr)
.then(res => res.data)
.then(setArbeidsliste);
}
}

Expand Down

0 comments on commit 141f951

Please sign in to comment.