Skip to content

Commit

Permalink
fix add new point2
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Jan 9, 2025
1 parent 8ab5efa commit 91ce30f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/osmApiAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ const getCommentMulti = (
// TODO find topmost parent in changes and use its name
// eg. survey • Edited Roviště (5 items) #osmapp #climbing

if (changes.length === 1 && changes[0].nodeLonLat) {
const typeTag = Object.entries(changes[0].tags)[0]?.join('=');
if (changes.length === 1 && original.point) {
const typeTag = changes[0].tagsEntries[0]?.join('=') ?? 'node with no tags';
return join(comment, ' • ', `Added ${typeTag} #osmapp`);
}

Expand Down

0 comments on commit 91ce30f

Please sign in to comment.