]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
avoid build warning by reassigning Nominatim_Config in script section
authormarc tobias <mtmail@gmx.net>
Mon, 12 Apr 2021 15:05:46 +0000 (17:05 +0200)
committermarc tobias <mtmail@gmx.net>
Mon, 12 Apr 2021 15:05:46 +0000 (17:05 +0200)
src/pages/StatusPage.svelte

index 242d54daba2aa0ccbea711a0a616b3b2f32f3c67..c3bfb78ed5e046683820b154ce928fa1d2fef9c3 100644 (file)
@@ -5,6 +5,7 @@
   import Header from '../components/Header.svelte';
 
   let aStatusData = {};
+  let configuration = Nominatim_Config;
 
   function loaddata() {
     fetch_from_api('status', { format: 'json' }, function (data) {
@@ -23,7 +24,7 @@
 
       <dl>
         <dt>API Endpoint</dt>
-        <dd><a href={Nominatim_Config.Nominatim_API_Endpoint}>{Nominatim_Config.Nominatim_API_Endpoint}</a></dd>
+        <dd><a href={configuration.Nominatim_API_Endpoint}>{configuration.Nominatim_API_Endpoint}</a></dd>
 
         <dt>Software version</dt>
         <dd>{aStatusData.software_version}</dd>