Skip to content
Snippets Groups Projects
Commit c990b8d5 authored by spaethju's avatar spaethju
Browse files

Fix drug details

parent 46ded0c6
Branches
Tags
No related merge requests found
......@@ -145,7 +145,7 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
}
}
} else if (selectedNodes[0].nodeType === 'drug') {
const drug: Drug = selectedNodes[0];
const drug: Drug = selectedNodes[0].details;
selectedId = drug.drugId;
selectedStatus = drug.status;
selectedName = drug.name;
......@@ -220,7 +220,6 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
const details = attributes.details || {};
for (const node of network.nodes) {
nodes.push(this.mapNode(node, nodeTypes[node] || this.inferNodeType(node), isSeed[node], scores[node], details[node]));
}
......@@ -298,6 +297,7 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
this.nodeData.nodes.add(this.drugNodes);
}
}
public screenshot() {
const elem = document.getElementById(this.indexscreenshot.toString());
html2canvas(elem).then((canvas) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment