From 9a99dbf8767080def7ce905da45e1218f21e50ae Mon Sep 17 00:00:00 2001 From: SebiVPS <42858722+SebiVPS@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:26:34 +0100 Subject: [PATCH] Fix saveFooter mutation usages (#521) --- admin/src/footers/EditFooterPage.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/admin/src/footers/EditFooterPage.tsx b/admin/src/footers/EditFooterPage.tsx index e734a7e8e..44812f163 100644 --- a/admin/src/footers/EditFooterPage.tsx +++ b/admin/src/footers/EditFooterPage.tsx @@ -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 }, }); }; @@ -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