diff --git a/designer_v2/lib/domain/study.dart b/designer_v2/lib/domain/study.dart index 1a420dfd2..85bae8042 100644 --- a/designer_v2/lib/domain/study.dart +++ b/designer_v2/lib/domain/study.dart @@ -124,9 +124,9 @@ extension StudyDuplicateX on Study { intervention.id = uuid.v4(); } - Map oldObservationIdToNew = {}; + final Map oldObservationIdToNew = {}; for (final observation in copy.observations) { - String newId = uuid.v4(); + final String newId = uuid.v4(); oldObservationIdToNew[observation.id] = newId; observation.id = newId; }