From 4dbae57d684531245cc60203f94bedfdf82b6d99 Mon Sep 17 00:00:00 2001 From: Ankit Suda Date: Sat, 19 Nov 2022 01:29:24 +0530 Subject: [PATCH] Fix crash in part measure screen --- .../rebound/ui/measure/part/overview/PartMeasurementsScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui-part-measure/src/main/java/com/ankitsuda/rebound/ui/measure/part/overview/PartMeasurementsScreen.kt b/modules/ui-part-measure/src/main/java/com/ankitsuda/rebound/ui/measure/part/overview/PartMeasurementsScreen.kt index 81e82331..7429626d 100644 --- a/modules/ui-part-measure/src/main/java/com/ankitsuda/rebound/ui/measure/part/overview/PartMeasurementsScreen.kt +++ b/modules/ui-part-measure/src/main/java/com/ankitsuda/rebound/ui/measure/part/overview/PartMeasurementsScreen.kt @@ -63,7 +63,7 @@ fun PartMeasurementsScreen( val weightUnit = LocalAppSettings.current.weightUnit - val points by rememberSaveable(logs) { + val points by remember(logs) { mutableStateOf( if (logs?.isEmpty() == true) emptyList() else logs?.map { LineChartData.Point(