forked from MapComplete/MapComplete
Fix build
This commit is contained in:
parent
e653a76b69
commit
4fbf567932
2 changed files with 5 additions and 3 deletions
|
@ -4,6 +4,7 @@ import FeatureSource from "../FeatureSource";
|
|||
import {UIEventSource} from "../../UIEventSource";
|
||||
import {ChangeDescription} from "../../Osm/Actions/ChangeDescription";
|
||||
import {ElementStorage} from "../../ElementStorage";
|
||||
import {OsmId, OsmTags} from "../../../Models/OsmFeature";
|
||||
|
||||
export class NewGeometryFromChangesFeatureSource implements FeatureSource {
|
||||
// This class name truly puts the 'Java' into 'Javascript'
|
||||
|
@ -86,11 +87,12 @@ export class NewGeometryFromChangesFeatureSource implements FeatureSource {
|
|||
|
||||
|
||||
try {
|
||||
const tags = {}
|
||||
const tags: OsmTags = {
|
||||
id: <OsmId> (change.type + "/" + change.id)
|
||||
}
|
||||
for (const kv of change.tags) {
|
||||
tags[kv.k] = kv.v
|
||||
}
|
||||
tags["id"] = change.type + "/" + change.id
|
||||
|
||||
tags["_backend"] = backendUrl
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ class DeleteabilityChecker {
|
|||
|
||||
if (allByMyself.data === null && useTheInternet) {
|
||||
// We kickoff the download here as it hasn't yet been downloaded. Note that this is mapped onto 'all by myself' above
|
||||
const hist = OsmObject.DownloadHistory(id).map(versions => versions.map(version => version.tags["_last_edit:contributor:uid"]))
|
||||
const hist = OsmObject.DownloadHistory(id).map(versions => versions.map(version => Number(version.tags["_last_edit:contributor:uid"])))
|
||||
hist.addCallbackAndRunD(hist => previousEditors.setData(hist))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue