Skip to content

Commit

Permalink
Disable syfoperson call (#386)
Browse files Browse the repository at this point in the history
* Disable call to syfoperson

* Exclude test
  • Loading branch information
andersrognstad authored Dec 12, 2023
1 parent 9bb7174 commit 51b3494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion test/query/personregisterHooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { expect } from 'chai';
describe('personregisterHooks tests', () => {
const queryClient = new QueryClient();

it('loads personregister correctly', async () => {
xit('loads personregister correctly', async () => {
stubModiaContext();
stubPersonoversikt();
stubPersonregister();
Expand Down

0 comments on commit 51b3494

Please sign in to comment.