Allow the highlights attribute of articles to be undefined
This commit is contained in:
@ -520,7 +520,7 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
||||
viewer={props.viewer}
|
||||
item={props.article}
|
||||
scrollToHighlight={highlightHref}
|
||||
highlights={props.article.highlights}
|
||||
highlights={props.article.highlights ?? []}
|
||||
isAppleAppEmbed={props.isAppleAppEmbed}
|
||||
highlightBarDisabled={props.highlightBarDisabled}
|
||||
showHighlightsModal={props.showHighlightsModal}
|
||||
|
||||
@ -982,7 +982,7 @@ export type ArticleAttributes = {
|
||||
folder: string
|
||||
savedByViewer?: boolean
|
||||
content: string
|
||||
highlights: Highlight[]
|
||||
highlights?: Highlight[]
|
||||
linkId: string
|
||||
labels?: Label[]
|
||||
state?: State
|
||||
|
||||
Reference in New Issue
Block a user