Was allowing existing work item location to be updated
This commit is contained in:
@@ -221,8 +221,9 @@ export class WorkItem extends React.Component {
|
||||
}
|
||||
|
||||
handleRegionChange(region) {
|
||||
if (!this.isMapReady) {
|
||||
if (this.state.binder._id || !this.isMapReady) {
|
||||
// On iOS we get this after setting the initial region, before the map declared as ready!
|
||||
// Also, if we are only viewing the work item, then don't allow region changes
|
||||
return
|
||||
}
|
||||
|
||||
@@ -428,7 +429,9 @@ export class WorkItem extends React.Component {
|
||||
)}
|
||||
{isIphoneX ? <View style={{ height: 30, width: "100%" }} /> : null}
|
||||
</ScrollView>
|
||||
<Geolocation onUpdate={this.handlePositionUpdate} watch={false} />
|
||||
{!this.state.binder._id && (
|
||||
<Geolocation onUpdate={this.handlePositionUpdate} watch={false} />
|
||||
)}
|
||||
<ProgressModal
|
||||
open={!!progressModal}
|
||||
message={progressModal ? progressModal.message : ""}
|
||||
|
||||
Reference in New Issue
Block a user