Skip to content

Commit

Permalink
fixes Validate not working when adding a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
misaugstad committed Oct 24, 2023
1 parent 5eb98f4 commit 63e232a
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 63e232a

Please sign in to comment.