diff --git a/src/Components/Facility/Consultations/BedActivityTimeline.tsx b/src/Components/Facility/Consultations/BedActivityTimeline.tsx
index 8a2df05170e..300ca93788f 100644
--- a/src/Components/Facility/Consultations/BedActivityTimeline.tsx
+++ b/src/Components/Facility/Consultations/BedActivityTimeline.tsx
@@ -86,6 +86,10 @@ const BedAllocationNode = ({
prevBed?: CurrentBed;
isLastNode: boolean;
}) => {
+ const { newlyLinkedAssets, existingAssets, unlinkedAssets } = getAssetDiff(
+ prevBed?.assets_objects ?? [],
+ bed.assets_objects ?? []
+ );
const event: TimelineEvent = {
type: "allocated",
timestamp: bed.start_date,
@@ -93,14 +97,18 @@ const BedAllocationNode = ({
icon: "l-bed",
iconWrapperStyle: bed.end_date === null ? "bg-green-500" : "",
iconStyle: bed.end_date === null ? "text-white" : "",
- notes: bed.assets_objects ? (
-
Assets
@@ -144,21 +149,21 @@ const BedTimelineAsset = ({ {newlyLinkedAssets.length > 0 && newlyLinkedAssets.map((newAsset) => (