From dbf176220bbd40ad2ec82ebdb9d8cf8cade5d608 Mon Sep 17 00:00:00 2001 From: u221711 Date: Wed, 18 Dec 2024 11:24:20 +0100 Subject: [PATCH] fix something I broke :) --- .../train_journey/widgets/train_journey.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart b/das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart index 29e7ed63..e255261f 100644 --- a/das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart +++ b/das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart @@ -119,12 +119,15 @@ class TrainJourney extends StatelessWidget { trackEquipmentRenderData: renderData) .build(context); case Datatype.cabSignaling: + final data = rowData as CABSignaling; return CABSignalingRow( - metadata: journey.metadata, - data: rowData as CABSignaling, - settings: settings, - trackEquipmentRenderData: renderData) - .build(context); + metadata: journey.metadata, + data: data, + settings: settings, + trackEquipmentRenderData: renderData.copyWith( + isCABStart: data.isStart, + isCABEnd: data.isEnd, + )).build(context); } }); }