From 54bb101e0ad953aa241e0e93f8763ead1ceb420c Mon Sep 17 00:00:00 2001 From: Ananta Pandey Date: Thu, 6 Sep 2018 19:03:39 -0400 Subject: [PATCH] fix bug that caused app to crash when dragging a marker (#44) --- expo_project/screens/SurveyScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expo_project/screens/SurveyScreen.js b/expo_project/screens/SurveyScreen.js index 8074f40..7263a00 100644 --- a/expo_project/screens/SurveyScreen.js +++ b/expo_project/screens/SurveyScreen.js @@ -320,7 +320,7 @@ class SurveyScreen extends React.Component { .collection("survey") .doc(surveyId) .collection("dataPoints") - .doc(marker.firestoreId) + .doc(marker.id) .update({ location: marker.location }); } }