Skip to content

Commit

Permalink
Fix saveFooter mutation usages (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiVPS authored Nov 18, 2024
1 parent 98160e4 commit 9a99dbf
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions admin/src/footers/EditFooterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,9 @@ export function EditFooterPage(): JSX.Element | null {
return; // dialogs open for the user to handle the conflict
}

const input = {
content: FooterContentBlock.state2Output(footerState),
};
const input = { content: FooterContentBlock.state2Output(footerState) };
return update({
variables: {
input,
scope,
lastUpdatedAt: data?.footer?.updatedAt ?? "",
},
variables: { input, scope },
});
};

Expand Down Expand Up @@ -179,8 +173,8 @@ const footerQuery = gql`
`;

const saveFooterMutation = gql`
mutation SaveFooter($lastUpdatedAt: DateTime, $input: FooterInput!, $scope: FooterScopeInput!) {
saveFooter(lastUpdatedAt: $lastUpdatedAt, input: $input, scope: $scope) {
mutation SaveFooter($input: FooterInput!, $scope: FooterScopeInput!) {
saveFooter(input: $input, scope: $scope) {
id
content
updatedAt
Expand Down

0 comments on commit 9a99dbf

Please sign in to comment.