Skip to content

Commit

Permalink
Update src/components/OntologyHierarchy/OntologyHierarchy.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: dptelicent <109953637+dptelicent@users.noreply.github.com>
Signed-off-by: davec504 <88431810+davec504@users.noreply.github.com>
  • Loading branch information
davec504 and dptelicent committed Mar 22, 2024
1 parent 14fa809 commit 767890f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OntologyHierarchy/OntologyHierarchy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const OntologyHierarchy: React.FC<OntologyHierarchyProps> = ({
.attr("x", (d) => 11)
.attr("y", (d) => (d.data.ontology?.faUnicode.length === 3 ? 3 : 4) + rowHeight/2)
.style("fill", (d) => !d.data.ontology ? "" : d.data.ontology.color)
.attr("font-size", (d) => d.data.ontology && d.data.ontology.faUnicode.length === 3 ? 8 : 10)
.attr("font-size", (d) => d.data.ontology?.faUnicode.length === 3 ? 8 : 10)
.text((d) => !d.data.ontology ? "" : d.data.ontology.faUnicode);

const chartWidth = document.getElementById(`chartGroup${instanceId}`)?.getBoundingClientRect().width;
Expand Down

0 comments on commit 767890f

Please sign in to comment.