Prevent ApolloError handling the manga category mutation result (#510)

Unclear what is causing the error or why this is fixing it, but without requesting the categories total count, the mutation fails on the first execution with "Uncaught (in promise) ApolloError: Cannot convert object to primitive value"
This commit is contained in:
schroda
2023-12-23 15:14:57 +01:00
committed by GitHub
parent 2f8c284c8b
commit f4e8441238
2 changed files with 4 additions and 2 deletions

View File

@@ -2446,14 +2446,14 @@ export type UpdateMangaCategoriesMutationVariables = Exact<{
}>;
export type UpdateMangaCategoriesMutation = { __typename?: 'Mutation', updateMangaCategories: { __typename?: 'UpdateMangaCategoriesPayload', clientMutationId?: string | null, manga: { __typename?: 'MangaType', id: number, categories: { __typename?: 'CategoryNodeList', nodes: Array<{ __typename?: 'CategoryType', id: number, mangas: { __typename?: 'MangaNodeList', totalCount: number } }> } } } };
export type UpdateMangaCategoriesMutation = { __typename?: 'Mutation', updateMangaCategories: { __typename?: 'UpdateMangaCategoriesPayload', clientMutationId?: string | null, manga: { __typename?: 'MangaType', id: number, categories: { __typename?: 'CategoryNodeList', totalCount: number, nodes: Array<{ __typename?: 'CategoryType', id: number, mangas: { __typename?: 'MangaNodeList', totalCount: number } }> } } } };
export type UpdateMangasCategoriesMutationVariables = Exact<{
input: UpdateMangasCategoriesInput;
}>;
export type UpdateMangasCategoriesMutation = { __typename?: 'Mutation', updateMangasCategories: { __typename?: 'UpdateMangasCategoriesPayload', clientMutationId?: string | null, mangas: Array<{ __typename?: 'MangaType', id: number, categories: { __typename?: 'CategoryNodeList', nodes: Array<{ __typename?: 'CategoryType', id: number, mangas: { __typename?: 'MangaNodeList', totalCount: number } }> } }> } };
export type UpdateMangasCategoriesMutation = { __typename?: 'Mutation', updateMangasCategories: { __typename?: 'UpdateMangasCategoriesPayload', clientMutationId?: string | null, mangas: Array<{ __typename?: 'MangaType', id: number, categories: { __typename?: 'CategoryNodeList', totalCount: number, nodes: Array<{ __typename?: 'CategoryType', id: number, mangas: { __typename?: 'MangaNodeList', totalCount: number } }> } }> } };
export type UpdateWebuiMutationVariables = Exact<{
input?: InputMaybe<WebUiUpdateInput>;

View File

@@ -106,6 +106,7 @@ export const UPDATE_MANGA_CATEGORIES = gql`
totalCount
}
}
totalCount
}
}
}
@@ -125,6 +126,7 @@ export const UPDATE_MANGAS_CATEGORIES = gql`
totalCount
}
}
totalCount
}
}
}