Skip to content

Commit

Permalink
fix: tracked measurements title
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrokohler committed Dec 19, 2024
1 parent a7dfae2 commit a511a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/cornerstone/src/panels/PanelMeasurement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ const { filterAdditionalFinding, filterAny } = utils.MeasurementFilters;
export type withAppAndFilters = withAppTypes & {
measurementFilters: Record<string, (item) => boolean>;
groupBy: string;
title: string;
};

export default function PanelMeasurementTable({
servicesManager,
commandsManager,
customHeader,
measurementFilters = { measurementFilter: filterAny },
title,
}: withAppAndFilters): React.ReactNode {
const measurementsPanelRef = useRef(null);

Expand Down Expand Up @@ -89,7 +91,7 @@ export default function PanelMeasurementTable({
return (
<MeasurementTable
key={`tracked-${key}`}
title={`Measurements for ${key}`}
title={title ? title : `Measurements for ${key}`}
data={value}
{...onArgs}
// onColor={changeColorMeasurement}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function PanelMeasurementTableTracking({
extensionManager={extensionManager}
commandsManager={commandsManager}
measurementFilters={measurementFilters}
title="Measurements"
customHeader={({ additionalFindings, measurements }) => {
const disabled = additionalFindings.length === 0 && measurements.length === 0;

Expand Down

0 comments on commit a511a62

Please sign in to comment.