From 5a77bd83321b9c92d4fe34656f356eb6d358306a Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 12 Apr 2022 20:50:06 -0700 Subject: [PATCH] Update to use pageId instead of linkId for SetLabels API --- packages/web/lib/networking/mutations/setLabelsMutation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/lib/networking/mutations/setLabelsMutation.ts b/packages/web/lib/networking/mutations/setLabelsMutation.ts index a7d3aa0bb..6953bcc45 100644 --- a/packages/web/lib/networking/mutations/setLabelsMutation.ts +++ b/packages/web/lib/networking/mutations/setLabelsMutation.ts @@ -12,7 +12,7 @@ type SetLabels = { } export async function setLabelsMutation( - linkId: string, + pageId: string, labelIds: string[] ): Promise { const mutation = gql` @@ -32,7 +32,7 @@ export async function setLabelsMutation( ` try { - const data = await gqlFetcher(mutation, { input: { linkId, labelIds } }) as SetLabelsResult + const data = await gqlFetcher(mutation, { input: { pageId, labelIds } }) as SetLabelsResult return data.errorCodes ? undefined : data.setLabels.labels } catch (error) { console.log('SetLabelsOutput error', error)