Skip to content

Commit

Permalink
Default avtaletype kun for AFT/VTA forhåndsgodkjent
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikpe committed Oct 21, 2024
1 parent 5cefe20 commit 75ff66c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ export function AvtaleSkjemaDetaljer({ tiltakstyper, ansatt, enheter, avtale }:
? avtaletypeOptions(event.target.value.tiltakskode)
: [];
const avtaletype = options[0]?.value;
setValue("avtaletype", avtaletype);
if (options.length === 1) {
setValue("avtaletype", avtaletype);
} else {
setValue("avtaletype", undefined);
}
updateOpsjonsmodell(avtaletype);
}}
options={tiltakstyper.map((tiltakstype) => ({
Expand Down

0 comments on commit 75ff66c

Please sign in to comment.