Skip to content

Commit

Permalink
Merge pull request #3414 from ProjectSidewalk/3400-bug-validate-broke…
Browse files Browse the repository at this point in the history
…n-when-adding-comment

Fixes Validate not working when adding a comment
  • Loading branch information
misaugstad authored Oct 24, 2023
2 parents 5eb98f4 + 63e232a commit 35d5115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/SVValidate/src/label/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function Label(params) {
return this;
}

function prepareLabelCommentData(comment, position, pov, zoom) {
function prepareLabelCommentData(comment, position, pov) {
let data = {
comment: comment,
label_id: svv.panorama.getCurrentLabel().getAuditProperty("labelId"),
Expand All @@ -182,7 +182,7 @@ function Label(params) {
lng: position.lng,
pitch: pov.pitch,
mission_id: svv.missionContainer.getCurrentMission().getProperty('missionId'),
zoom: zoom
zoom: pov.zoom
};
return data;
}
Expand Down Expand Up @@ -259,7 +259,7 @@ function Label(params) {
if (comment) {
document.getElementById('validation-label-comment').value = '';
svv.tracker.push("ValidationTextField_DataEntered");
let data = prepareLabelCommentData(comment, svv.panorama.getPosition(), userPov, zoom);
let data = prepareLabelCommentData(comment, svv.panorama.getPosition(), userPov);
submitComment(data);
}

Expand Down

0 comments on commit 35d5115

Please sign in to comment.