Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
change order
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Apr 22, 2022
1 parent 05885af commit 6414228
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/dataproducts/access/newAccessForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ const NewAccessForm = ({ open, setOpen, id, pii }: NewAccessFormProps) => {
polly: null,
}

const variables: GrantAccessMutationVariables = {
input: newGrant,
if (requestData.accessType === 'until') {
newGrant.expires = date
}

if (requestData.accessType === 'until') {
variables.input.expires = date
const variables: GrantAccessMutationVariables = {
input: newGrant,
}

await grantAccess({
Expand Down

0 comments on commit 6414228

Please sign in to comment.