From 720e0fb319df1178fd03aa2bc3fff2169f2986ee Mon Sep 17 00:00:00 2001 From: Graham McNeill Date: Mon, 20 Jan 2025 14:34:19 +0000 Subject: [PATCH] cleanup --- .../sections/src/variant/GWASCredibleSets/Body.tsx | 2 -- .../src/variant/GWASCredibleSets/PheWasPlot.tsx | 14 ++++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/sections/src/variant/GWASCredibleSets/Body.tsx b/packages/sections/src/variant/GWASCredibleSets/Body.tsx index b1afdf80c..d67ffc98d 100644 --- a/packages/sections/src/variant/GWASCredibleSets/Body.tsx +++ b/packages/sections/src/variant/GWASCredibleSets/Body.tsx @@ -24,7 +24,6 @@ import { import PheWasPlot from "./PheWasPlot"; import { useEffect, useState } from "react"; import { responseType } from "ui/src/types/response"; -import { v1 } from "uuid"; type getColumnsType = { id: string; @@ -288,7 +287,6 @@ function Body({ id, entity }: BodyProps) { return ( d[1].start, + x1: d => d[1].start, x2: d => d[1].end, y: yMax, stroke: (d, i) => palette[i], @@ -292,7 +290,7 @@ function renderChart({ x: d => d._x, y: d => d._y, r: 2.55, - symbol: d => (d.beta ? "triangle" : "circle"), + symbol: d => (d.beta == null ? "circle" : "triangle"), stroke: d => palette[xIntervals.get(d._therapeuticAreaId).index], fill: d => d.variant.id === pageId @@ -344,7 +342,7 @@ function renderTooltip(datum) { {datum.study.diseases.map((d, i) => ( {i > 0 && ", "} - {d.name} + {d.name} ))}