From ca371b6d4298edecdb0e4fdab7600ad2528c8128 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 21 Mar 2024 12:07:09 +0800 Subject: [PATCH] fix mutation error --- .../lib/networking/mutations/exportToIntegrationMutation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/lib/networking/mutations/exportToIntegrationMutation.ts b/packages/web/lib/networking/mutations/exportToIntegrationMutation.ts index 8aad42527..ac8ec9591 100644 --- a/packages/web/lib/networking/mutations/exportToIntegrationMutation.ts +++ b/packages/web/lib/networking/mutations/exportToIntegrationMutation.ts @@ -13,7 +13,7 @@ export interface Task { interface ExportToIntegrationDataResponseData { exportToIntegration: { - Task: Task + task: Task errorCodes?: string[] } } @@ -26,7 +26,7 @@ export async function exportToIntegrationMutation(integrationId: string) { errorCodes } ... on ExportToIntegrationSuccess { - Task { + task { id } } @@ -41,5 +41,5 @@ export async function exportToIntegrationMutation(integrationId: string) { throw error } - return output.exportToIntegration.Task + return output.exportToIntegration.task }