fix(renderers): prevent duplicate treatment card rendering from ContentLinkAttributeSections
This commit is contained in:
parent
9ff35bcd70
commit
c40e4cd254
|
|
@ -179,7 +179,11 @@ export function EovDetailRenderer({
|
|||
order: orderFor("treatment", 140),
|
||||
render: () => (
|
||||
<SectionCard title="Treatment">
|
||||
<Text style={styles.pathway}>{asString(data.treatment)}</Text>
|
||||
{typeof data.treatment === "object" ? (
|
||||
<ContentValue value={data.treatment} />
|
||||
) : (
|
||||
<Text style={styles.pathway}>{asString(data.treatment)}</Text>
|
||||
)}
|
||||
</SectionCard>
|
||||
),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ const DEFAULT_EXCLUDED_KEYS = new Set([
|
|||
"point_codes",
|
||||
"source_point",
|
||||
"source_points",
|
||||
"treatment",
|
||||
"treatment_principle",
|
||||
]);
|
||||
|
||||
export function ContentLinkAttributeSections({
|
||||
|
|
|
|||
Loading…
Reference in New Issue