Various cleanups

This commit is contained in:
Pieter Vander Vennet 2021-10-20 00:19:33 +02:00
parent fd2ed950cc
commit 3ac7a3c59e
5 changed files with 3 additions and 54 deletions

View file

@ -8,7 +8,6 @@ import Svg from "../../Svg";
import Img from "../../UI/Base/Img";
import {Utils} from "../../Utils";
import {OsmObject} from "./OsmObject";
import LayoutConfig from "../../Models/ThemeConfig/LayoutConfig";
import {Changes} from "./Changes";
export default class UserDetails {
@ -97,7 +96,6 @@ export class OsmConnection {
self.AttemptLogin()
}
});
this.isLoggedIn.addCallbackAndRunD(li => console.log("User is logged in!", li))
this._dryRun = options.dryRun;
this.updateAuthObject();

View file

@ -66,9 +66,7 @@ export abstract class OsmObject {
const url = `${OsmObject.backendURL}api/0.6/${id}`;
const rawData = await Utils.downloadJsonCached(url, 1000)
const tags = rawData.elements[0].tags
console.log("Tags are", tags)
return tags
return rawData.elements[0].tags
}
static async DownloadObjectAsync(id: string): Promise<OsmObject> {