Skip to content

Commit

Permalink
#dag Fix demo page causing onChanges calls
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588700313
  • Loading branch information
biharygergo authored and copybara-github committed Dec 7, 2023
1 parent 2282ea8 commit 9b1d608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/demo_page/demo_page.ng.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
[nodes]="currDataset.nodes"
[edges]="currDataset.edges"
[groups]="currDataset.groups"
[customNodeTemplates]="makeObject(['outlineBasic', outlineBasic], ['embedYt', embedYt])"
[customNodeTemplates]="{'outlineBasic': this.outlineBasic, 'embedYt': embedYt}"
>
<ai-dag-sidebar />
</ai-dag-renderer>
Expand Down Expand Up @@ -560,7 +560,7 @@
[nodes]="currDataset.nodes"
[edges]="currDataset.edges"
[groups]="currDataset.groups"
[customNodeTemplates]="makeObject(['outlineBasic', outlineBasic], ['embedYt', embedYt])"
[customNodeTemplates]="{'outlineBasic': this.outlineBasic, 'embedYt': embedYt}"
>
<ai-dag-sidebar />
</ai-dag-renderer>
Expand Down
3 changes: 0 additions & 3 deletions src/app/demo_page/demo_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ export class DagDemoPage {
group.edges = [...group.edges, newEdge];
this.currDataset.groups = [...this.currDataset.groups];
}
makeObject(...entries: Array<[string, TemplateRef<any>]>) {
return Object.fromEntries(entries);
}
resetGraph() {
this.setCurrDataset(this.datasetName!, true);
}
Expand Down

0 comments on commit 9b1d608

Please sign in to comment.