Skip to content

Commit

Permalink
Disable call to syfoperson
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Dec 12, 2023
1 parent 9bb7174 commit 9fb0bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/personregisterHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const usePersonregisterQuery = () => {
return useQuery({
queryKey: personregisterQueryKeys.personregister(aktivEnhet),
queryFn: fetchPersonregister,
enabled: !!aktivEnhet && fnrForPersonerListe.length > 0,
enabled: false,
onError: (error) => {
if (error instanceof ApiErrorException && error.code === 403) {
throwError(error);
Expand Down

0 comments on commit 9fb0bec

Please sign in to comment.