From d4bd2d43aa8fde4cea2b6eb4a40af50f49d0ed95 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Wed, 21 Oct 2026 16:26:54 +0530 Subject: [PATCH] render clinical manifestations as BulletList in PathogenicFactorsDetailRenderer --- .../details/PathogenicFactorsDetailRenderer.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/features/content/renderers/details/PathogenicFactorsDetailRenderer.tsx b/src/features/content/renderers/details/PathogenicFactorsDetailRenderer.tsx index ecc25c8..90e941b 100644 --- a/src/features/content/renderers/details/PathogenicFactorsDetailRenderer.tsx +++ b/src/features/content/renderers/details/PathogenicFactorsDetailRenderer.tsx @@ -5,10 +5,11 @@ import type { DetailRendererProps } from "../../types/renderer.types"; import { ContentLinkAttributeSections } from "../shared/ContentLinkAttributeSections"; import { Hero } from "../shared/Hero"; +import { BulletList } from "../shared/BulletList"; import { SectionCard } from "../shared/SectionCard"; import { Paragraphs } from "../shared/Paragraphs"; import { ImageGallery } from "../shared/ImageGallery"; -import { asString } from "../helpers/value"; +import { asString, asStringArray } from "../helpers/value"; export function PathogenicFactorsDetailRenderer({ content, @@ -22,7 +23,12 @@ export function PathogenicFactorsDetailRenderer({ content.title; const overview = asString(data.overview); - const clinicalManifestations = asString(data.clinical_manifestations); + const clinicalManifestationsRaw = + data.clinical_manifestations ?? + data.clinical_manifestation; + const clinicalManifestationItems = asStringArray(clinicalManifestationsRaw).filter( + (item) => item.trim().length > 0, + ); const analysis = asString(data.analysis); const contentText = asString(data.content); const defaultImage = asString(data["default image"]); @@ -56,9 +62,9 @@ export function PathogenicFactorsDetailRenderer({ ) : null} - {clinicalManifestations ? ( + {clinicalManifestationItems.length > 0 ? ( - + ) : null}