Skip to content

Commit

Permalink
fix(CriptGraphOptimizer): reference as { uid }
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmit committed Aug 11, 2023
1 parent 549d638 commit 38db398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/typescript/src/utilities/cript-graph-optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ export class CriptGraphOptimizer {

case "citation":
// Reference will be moved to the shared_references, and a simple Edge will be set for node.reference
if (value) value = value.map( v => {
v.reference = this.make_edge(value);
return v
if (value) value = value.map( _citation => {
_citation.reference = this.make_edge(_citation.reference);
return _citation;
})
break;
}
Expand Down

0 comments on commit 38db398

Please sign in to comment.