Add siteName to article so its available on debug page
This commit is contained in:
@ -20,6 +20,7 @@ export const articleFragment = gql`
|
||||
description
|
||||
linkId
|
||||
state
|
||||
siteName
|
||||
wordsCount
|
||||
}
|
||||
`
|
||||
|
||||
@ -969,6 +969,7 @@ export type ArticleAttributes = {
|
||||
author?: string
|
||||
image?: string
|
||||
savedAt: string
|
||||
siteName?: string
|
||||
createdAt: string
|
||||
publishedAt?: string
|
||||
description?: string
|
||||
|
||||
@ -50,6 +50,8 @@ export default function Debug(): JSX.Element {
|
||||
value: article.originalArticleUrl,
|
||||
})
|
||||
result.push({ name: 'author', value: article.author ?? 'null' })
|
||||
result.push({ name: 'siteName', value: article.siteName ?? 'null' })
|
||||
|
||||
result.push({ name: 'image', value: article.image ?? 'null' })
|
||||
result.push({ name: 'savedAt', value: article.savedAt })
|
||||
result.push({ name: 'createdAt', value: article.createdAt })
|
||||
|
||||
Reference in New Issue
Block a user