Merge pull request #223 from omnivore-app/fix/rm-unused-gql

Remove unused attributes from article queries
This commit is contained in:
Jackson Harper 2022-03-11 13:07:51 -08:00 committed by GitHub
commit bf8d99e0f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View file

@ -42,7 +42,6 @@ export type ArticleAttributes = {
readingProgressPercent: number
readingProgressAnchorIndex: number
slug: string
postedByViewer?: boolean
savedByViewer?: boolean
content: string
shareInfo?: ArticleShareInfo
@ -66,8 +65,6 @@ const query = gql`
... on ArticleSuccess {
article {
...ArticleFields
postedByViewer
savedByViewer
content
shareInfo {
title

View file

@ -66,8 +66,6 @@ export function useGetArticleSavingStatus({
}
article {
...ArticleFields
postedByViewer
savedByViewer
content
shareInfo {
title

View file

@ -32,8 +32,6 @@ export type PublicArticleAttributes = {
author?: string
image?: string
description?: string
savedByViewer?: boolean
postedByViewer?: boolean
hasContent?: boolean
shareInfo?: PublicArticleShareInfo
highlights: Highlight[]