Skip to content

Commit

Permalink
use edit.newFeature.wayEditingHistory to determine if conflicting fea…
Browse files Browse the repository at this point in the history
…ture is a way
  • Loading branch information
sethvincent committed Jun 8, 2020
1 parent 3cbaa0e commit 372e129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/Conflict.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class Conflict extends React.Component {
if (updatedFeature.isDeleted) {
return this.upstreamDeleted()
}
if (updatedFeature.geometry.type === 'LineString' || updatedFeature.geometry.type === 'Polygon') {
if (originalEdit.newFeature.wayEditingHistory) {
return this.featureIsAWay()
}
if (originalEdit.type === 'delete') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class UserContributionsItemScreen extends React.Component {
}

getHeaderActions (edit) {
if (edit.newFeature.geometry.type === 'LineString' || edit.newFeature.geometry.type === 'Polygon') {
if (edit.newFeature.wayEditingHistory) {
return this.getWayConflictActions()
}
if (edit.status === 'success') {
Expand Down

0 comments on commit 372e129

Please sign in to comment.