Skip to content

Commit

Permalink
AUS-4295 Added error for no job found for nvclanid
Browse files Browse the repository at this point in the history
  • Loading branch information
jia020 committed Dec 10, 2024
1 parent 98bc7c8 commit 1a32d28
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/app/cesium-map/csmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,16 @@ export class CsMapComponent implements AfterViewInit {
const nvclanid = UtilitiesService.getUrlParameterByName('nvclanid');
if (nvclanid) {
const me = this;
this.nvclBoreholeAnalyticService.getNVCLGeoJson(nvclanid).subscribe(results => {
const jsonData = results;
me.nvclBoreholeAnalyticService.addGeoJsonLayer(nvclanid,jsonData);
});

this.nvclBoreholeAnalyticService.getNVCLGeoJson(nvclanid).subscribe(results => {
if (typeof results === 'object') {
window.alert('This analytical job could not be found!\n the nvclanid = ' + nvclanid);
return;
}
const jsonData = results;
me.nvclBoreholeAnalyticService.addGeoJsonLayer(nvclanid,jsonData);
});

return;
}

Expand Down

0 comments on commit 1a32d28

Please sign in to comment.