Viktoriia 1 mēnesi atpakaļ
vecāks
revīzija
e4998fa4f6

+ 1 - 3
src/screens/InAppScreens/TravelsScreen/EditNmDataScreen/index.tsx

@@ -47,7 +47,7 @@ interface DateValue {
 
 interface Visit {
   id: number;
-  trip_id: number | null;
+  trip_id?: number | null;
   startDate: DateValue | null;
   endDate: DateValue | null;
   quality: QualityType;
@@ -104,7 +104,6 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
       id: Date.now() + Math.random(),
       startDate: null,
       endDate: null,
-      trip_id: null,
       quality: qualityOptions[2],
       isExisting: false,
       animatedValue: new Animated.Value(0)
@@ -119,7 +118,6 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
           ...visit,
           isExisting: true,
           isEditing: false,
-          trip_id: null,
           animatedValue: new Animated.Value(1),
           startDate: {
             year: visit.year_from || null,