Merge pull request #223 from omnivore-app/fix/rm-unused-gql
Remove unused attributes from article queries
This commit is contained in:
@ -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
|
||||
|
||||
@ -66,8 +66,6 @@ export function useGetArticleSavingStatus({
|
||||
}
|
||||
article {
|
||||
...ArticleFields
|
||||
postedByViewer
|
||||
savedByViewer
|
||||
content
|
||||
shareInfo {
|
||||
title
|
||||
|
||||
@ -32,8 +32,6 @@ export type PublicArticleAttributes = {
|
||||
author?: string
|
||||
image?: string
|
||||
description?: string
|
||||
savedByViewer?: boolean
|
||||
postedByViewer?: boolean
|
||||
hasContent?: boolean
|
||||
shareInfo?: PublicArticleShareInfo
|
||||
highlights: Highlight[]
|
||||
|
||||
Reference in New Issue
Block a user