Skip to content

Commit

Permalink
Merge pull request #10 from maproulette/utils-bug
Browse files Browse the repository at this point in the history
Fix undefined utils reference
  • Loading branch information
jschwarz2030 authored Oct 17, 2021
2 parents 2d7c395 + f61110b commit fff4b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maproulette/mr-cli",
"version": "0.1.2",
"version": "0.1.4",
"description": "Utilities for MapRoulette challenge management",
"keywords": [
"maproulette",
Expand Down
4 changes: 2 additions & 2 deletions src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const Utils = {
return new Promise((resolve, reject) => {
const versionId = `${change.elementType}/${change.elementId}/${change.element.version}`
if (Utils.versionedElements.has(versionId)) {
resolve(utils.versionedElements.get(versionId))
resolve(Utils.versionedElements.get(versionId))
return
}

Expand Down Expand Up @@ -307,7 +307,7 @@ const Utils = {
elementIds.forEach(elementId => {
const referenceId = `${elementType}/${elementId}`
if (Utils.versionedElements.has(referenceId)) {
results.set(elementId, utils.versionedElements.get(referenceId))
results.set(elementId, Utils.versionedElements.get(referenceId))
}
else if (localElements && localElements.has(elementId)) {
results.set(elementId, localElements.get(elementId))
Expand Down

0 comments on commit fff4b7a

Please sign in to comment.