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),
|
order: orderFor("treatment", 140),
|
||||||
render: () => (
|
render: () => (
|
||||||
<SectionCard title="Treatment">
|
<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>
|
</SectionCard>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue