Skip to content

Commit

Permalink
Fjernet ubrukt variabel i dependency array.
Browse files Browse the repository at this point in the history
  • Loading branch information
sstensby committed Nov 15, 2023
1 parent 9758c96 commit 038bf82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Aktiviteter/context/aktivitetStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const useStatusForAktiviteter = (ider: string[]) => {

export const useOppdaterStatus = (
orgnr: string | null | undefined,
tittel: string,
aktivitetId: string
) => {
const { setLokaleEndringer } = React.useContext(AktivitetContext);
Expand Down Expand Up @@ -117,6 +116,6 @@ export const useOppdaterStatus = (
console.error("Får ikke oppdatert status. Mangler orgnr.");
}
},
[setLokaleEndringer, orgnr, tittel, aktivitetId]
[setLokaleEndringer, orgnr, aktivitetId]
);
};

0 comments on commit 038bf82

Please sign in to comment.