]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Fix: Missing API and debug links (#132)
authorYash Srivastava <52625656+darkshredder@users.noreply.github.com>
Mon, 19 Apr 2021 22:06:13 +0000 (03:36 +0530)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 22:06:13 +0000 (00:06 +0200)
src/components/LastUpdated.svelte

index a5b3277e2408b86cbd797cecd30c131a3ae9355f..44738f204b2608e34a2403f44b233623bc6a2a9f 100644 (file)
@@ -9,11 +9,12 @@
   let fetch_running = false; // prevent multiple parallel fetch runs
 
   last_api_request_url_store.subscribe(url => {
+    last_api_request_url = url;
+
     if (fetch_running || last_updated_date) return;
 
     fetch_running = true;
 
-    last_api_request_url = url;
     fetch_from_api('status', { format: 'json' }, function (data) {
       last_updated_date = data.data_updated;
       fetch_running = false;