File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,14 @@ export default function Search({
76
76
if ( referencesScidSet . has ( notionPaper . scid )
77
77
|| notionPaper . citationScids . includes ( paper . scid ) ) {
78
78
await updateNotionPage ( notionPaper . id , {
79
- citations : [ ...notionPaper . references ?? [ ] , { id : returnedPaper . id } ] ,
79
+ citations : [ ...( notionPaper . citations ?? [ ] ) , { id : returnedPaper . id } ] ,
80
80
} )
81
81
returnedPaper . references ?. push ( { id : notionPaper . id } as any )
82
82
}
83
83
if ( citationsScidSet . has ( notionPaper . scid )
84
84
|| notionPaper . referenceScids . includes ( paper . scid ) ) {
85
85
await updateNotionPage ( notionPaper . id , {
86
- references : [ ...notionPaper . citations ?? [ ] , { id : returnedPaper . id } ] ,
86
+ references : [ ...( notionPaper . references ?? [ ] ) , { id : returnedPaper . id } ] ,
87
87
} )
88
88
returnedPaper . citations ?. push ( { id : notionPaper . id } as any )
89
89
}
You can’t perform that action at this time.
0 commit comments