Skip to content

Commit

Permalink
bugfix saksid kan ikke være null
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelegu committed Jan 30, 2024
1 parent 6d91c2d commit 22fe673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/Saksoversikt/Saksside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const Saksside = () => {
const skip = saksid === undefined && (merkelapp === undefined || grupperingsid === undefined);

const { loading, data, error } = useQuery(
saksid !== null ? HENT_SAK_ID : HENT_SAK_GRUPPERINGSID,
saksid !== undefined ? HENT_SAK_ID : HENT_SAK_GRUPPERINGSID,
{
variables: { id: saksid, merkelapp: merkelapp, grupperingsid: grupperingsid },
skip,
Expand Down

0 comments on commit 22fe673

Please sign in to comment.