@@ -57,15 +57,29 @@ function WorkNode({ data }) {
5757 openalexId : data . workData . work . openalexId ,
5858 investigationId : investigationId ,
5959 } ,
60- refetchQueries : [ USE_INVESTIGATION_GRAPH ] ,
60+ onCompleted : ( data ) => {
61+ {
62+ {
63+ window . location . reload ( ) ;
64+ }
65+ }
66+ } ,
67+ // refetchQueries: [USE_INVESTIGATION_GRAPH],
6168 } ) ;
6269
6370 const [ addCitations ] = useMutation ( ADD_CITATIONS , {
6471 variables : {
6572 openalexId : data . workData . work . openalexId ,
6673 investigationId : investigationId ,
6774 } ,
68- refetchQueries : [ USE_INVESTIGATION_GRAPH ] ,
75+ onCompleted : ( data ) => {
76+ {
77+ {
78+ window . location . reload ( ) ;
79+ }
80+ }
81+ } ,
82+ // refetchQueries: [USE_INVESTIGATION_GRAPH],
6983 } ) ;
7084
7185 useEffect ( ( ) => {
@@ -84,8 +98,8 @@ function WorkNode({ data }) {
8498 } }
8599 ref = { noderef }
86100 >
87- < Handle type = "source " position = { Position . Top } id = "top-handle" />
88- < Handle type = "target " position = { Position . Bottom } id = "bottom-handle" />
101+ < Handle type = "target " position = { Position . Top } id = "top-handle" />
102+ < Handle type = "source " position = { Position . Bottom } id = "bottom-handle" />
89103 < label htmlFor = "text" > { data . workData . work . title } </ label >
90104 < button onClick = { ( ) => addReferences ( ) } > Show References</ button >
91105 < p > </ p >
0 commit comments