Skip to content

Commit f59ef56

Browse files
committed
hide homepage
1 parent 74857ca commit f59ef56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/tools/paper-graph/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ export default function Search({
7676
if (referencesScidSet.has(notionPaper.scid)
7777
|| notionPaper.citationScids.includes(paper.scid)) {
7878
await updateNotionPage(notionPaper.id, {
79-
citations: [...notionPaper.references ?? [], { id: returnedPaper.id }],
79+
citations: [...(notionPaper.citations ?? []), { id: returnedPaper.id }],
8080
})
8181
returnedPaper.references?.push({ id: notionPaper.id } as any)
8282
}
8383
if (citationsScidSet.has(notionPaper.scid)
8484
|| notionPaper.referenceScids.includes(paper.scid)) {
8585
await updateNotionPage(notionPaper.id, {
86-
references: [...notionPaper.citations ?? [], { id: returnedPaper.id }],
86+
references: [...(notionPaper.references ?? []), { id: returnedPaper.id }],
8787
})
8888
returnedPaper.citations?.push({ id: notionPaper.id } as any)
8989
}

0 commit comments

Comments
 (0)