Skip to content

Commit

Permalink
Merge pull request #453 from ncats/arch_frontend_3.1
Browse files Browse the repository at this point in the history
ssg4m fixed scheme view loading
  • Loading branch information
NikoAnderson authored Aug 17, 2023
2 parents 206e3d5 + ee22ef7 commit 6fd257f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ export class SubstanceFormSsg4mProcessCardComponent extends SubstanceCardBaseFil
//This is a hacky placeholder way to force viz
//TODO finish this
const ssgjs = JSON.stringify(this.substanceFormService.cleanSubstance());
window['schemeUtil'].renderScheme(window['schemeUtil'].makeDisplayGraph(JSON.parse(ssgjs)), "#scheme-viz-view");
if (window['schemeUtil']) {
window['schemeUtil'].renderScheme(window['schemeUtil'].makeDisplayGraph(JSON.parse(ssgjs)), "#scheme-viz-view");
}
} else {
document.querySelector("#scheme-viz-view").className = "hidden";
}
Expand Down

0 comments on commit 6fd257f

Please sign in to comment.