File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,12 @@ function assignStacEndpoint() {
192
192
console . warn (
193
193
"[eodash-preview-instance] stacEndpoint not assigned, using default" ,
194
194
) ;
195
- return "https://esa-eodashboards.github.io/eodashboard-catalog/trilateral/catalog.json" ;
195
+ /*
196
+ TODO: we should evaluate how to handle if stacEndpoint is not set, having a default
197
+ endpoint is not a good idea, it should show an error message instead
198
+ setting it to an empty string for now
199
+ */
200
+ return "" ;
196
201
}
197
202
198
203
window . addEventListener ( "message" , ( event ) => {
@@ -206,7 +211,7 @@ window.addEventListener("message", (event) => {
206
211
console . log ( "stacEndpoint from parent:" , stacEndpoint ) ;
207
212
if ( stacEndpoint && stacEndpoint . endsWith ( "catalog.json" ) ) {
208
213
const urlParams = new URLSearchParams ( window . location . search ) ;
209
- urlParams . set ( "stacEndpoint" , stacEndpoint + "?t=" + Date . now ( ) ) ;
214
+ urlParams . set ( "stacEndpoint" , stacEndpoint ) ;
210
215
window . history . replaceState ( { } , "" , `?${ urlParams } ` ) ;
211
216
window . location . reload ( ) ;
212
217
console . log (
You can’t perform that action at this time.
0 commit comments