Skip to content

Commit

Permalink
drug column updated
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmehta committed Nov 22, 2023
1 parent 1864532 commit 006ac6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from "ui";
function Description({ symbol }) {
return (
<>
Genetic variants in <strong>{symbol}</strong> that have been associated with drug response.
Genetic variants in <strong>{symbol}</strong> that have been associated with drug response
(Gene may not be direct target of the drug). Source:{" "}
<Link external to="https://www.pharmgkb.org/">
PharmGKB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ function OverviewTab({ pharmacogenomics, query, variables }) {
{
id: "drug",
label: "Drug(s)",
renderCell: ({ drugId, drugFromSource }) =>
drugId ? <Link to={`/drug/${drugId}`}>{drugFromSource || naLabel}</Link> : naLabel,
renderCell: ({ drugId, drugFromSource }) => {
let drugElement = drugFromSource || drugId || naLabel;
if (drugId) drugElement = <Link to={`/drug/${drugId}`}>{drugElement}</Link>;
return drugElement;
},
},
{
id: "drugResponse",
Expand Down

0 comments on commit 006ac6a

Please sign in to comment.