diff --git a/package-lock.json b/package-lock.json
index 998af62..6c6ff18 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12109,10 +12109,11 @@
}
},
"node_modules/http-proxy-middleware": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz",
- "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==",
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz",
+ "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@types/http-proxy": "^1.17.8",
"http-proxy": "^1.18.1",
diff --git a/src/app.js b/src/app.js
index 40f2a27..b379c4e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -8,6 +8,7 @@ import { ControlPanel } from '@components/control-panel';
import { ComparePanel } from '@components/compare-panel';
import { MapLegend } from '@components/legend';
import { AlertUser } from '@components/alert-user';
+import { Config } from '@components/config';
/**
* renders the main content
@@ -17,7 +18,7 @@ import { AlertUser } from '@components/alert-user';
*/
const Content = () => {
// install the selected observation list from the layer context
- const { selectedObservations } = useLayers();
+ const { selectedObservations, defaultInstanceName } = useLayers();
// render all the application content
return (
@@ -32,10 +33,13 @@ const Content = () => {
return ;
})
}
+
-
-
+ {/* here we are waiting for the retrieval of the default Instance name
+ before rendering these components */}
+ { (defaultInstanceName != null) && }
+ { (defaultInstanceName != null) && }
diff --git a/src/components/alert-user/alert-user.js b/src/components/alert-user/alert-user.js
index de554c8..51c772b 100644
--- a/src/components/alert-user/alert-user.js
+++ b/src/components/alert-user/alert-user.js
@@ -12,7 +12,7 @@ export const AlertUser = () => {