From e09dfbf3f70e128bb016bb35a2fb6334508e8983 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 28 Jun 2021 00:59:30 +0200 Subject: [PATCH] Fix JOSM link --- UI/BigComponents/Attribution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/BigComponents/Attribution.ts b/UI/BigComponents/Attribution.ts index bad254726..0eefd107b 100644 --- a/UI/BigComponents/Attribution.ts +++ b/UI/BigComponents/Attribution.ts @@ -38,7 +38,7 @@ export default class Attribution extends Combine { let editWithJosm = new VariableUiElement( userDetails.map(userDetails => { - if (userDetails.csCount >= Constants.userJourney.tagsVisibleAndWikiLinked) { + if (userDetails.csCount < Constants.userJourney.tagsVisibleAndWikiLinked) { return undefined; } const bounds: any = leafletMap?.data?.getBounds(); @@ -53,7 +53,7 @@ export default class Attribution extends Combine { const josmLink = `http://127.0.0.1:8111/load_and_zoom?left=${left}&right=${right}&top=${top}&bottom=${bottom}` return new Link(Svg.josm_logo_ui().SetClass("small-image"), josmLink, true); }, - [location] + [location, leafletMap] ) ) super([mapComplete, reportBug, stats, editHere, editWithJosm, mapillary]);