Skip to content

Commit

Permalink
Update in Gosys modal: Reset enhetmappe when enhet is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksson-daniel committed Dec 17, 2024
1 parent f0f3d13 commit 948ca89
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ const UpdateInGosysLoaded = ({ oppgavebehandling, enheter, initialBeskrivelse, c

<ReceivingEnhet
selectedEnhet={selectedEnhet}
setSelectedEnhet={setSelectedEnhet}
setSelectedEnhet={(e) => {
if (e === selectedEnhet) {
return;
}

setSelectedEnhet(e);
setSelectedMappe(null);
}}
error={enhetError}
enheter={enheter}
oppgavebehandling={oppgavebehandling}
Expand Down

0 comments on commit 948ca89

Please sign in to comment.