fix(renderers): prevent duplicate treatment card rendering from ContentLinkAttributeSections

This commit is contained in:
ShivaniKhaire 2026-10-26 09:42:58 +05:30
parent 9ff35bcd70
commit c40e4cd254
2 changed files with 7 additions and 1 deletions

View File

@ -179,7 +179,11 @@ export function EovDetailRenderer({
order: orderFor("treatment", 140), order: orderFor("treatment", 140),
render: () => ( render: () => (
<SectionCard title="Treatment"> <SectionCard title="Treatment">
{typeof data.treatment === "object" ? (
<ContentValue value={data.treatment} />
) : (
<Text style={styles.pathway}>{asString(data.treatment)}</Text> <Text style={styles.pathway}>{asString(data.treatment)}</Text>
)}
</SectionCard> </SectionCard>
), ),
}); });

View File

@ -33,6 +33,8 @@ const DEFAULT_EXCLUDED_KEYS = new Set([
"point_codes", "point_codes",
"source_point", "source_point",
"source_points", "source_points",
"treatment",
"treatment_principle",
]); ]);
export function ContentLinkAttributeSections({ export function ContentLinkAttributeSections({