Skip to content

Commit

Permalink
Merge pull request #2373 from navikt/fjern-default-ansvarlig
Browse files Browse the repository at this point in the history
Fjern at ansvarlig blir automatisk satt til innlogget bruker
  • Loading branch information
fredrikpe authored Sep 5, 2023
2 parents 68b0d89 + 01ed5b0 commit 031cb23
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ export const TiltaksgjennomforingSkjemaContainer = ({
"midlertidigStengt.erMidlertidigStengt",
);

useEffect(() => {
if (ansatt && !isLoadingAnsatt && !tiltaksgjennomforing?.ansvarlig) {
setValue("ansvarlig", ansatt.navIdent);
}
}, [ansatt, isLoadingAnsatt, setValue]);

async function getLokasjonForArrangor(orgnr?: string) {
if (!orgnr) return;

Expand Down

0 comments on commit 031cb23

Please sign in to comment.