Skip to content

Commit

Permalink
Merge pull request #744 from geographika/arcgis-guard
Browse files Browse the repository at this point in the history
Add check for ArcGISRest service requests returning errors
  • Loading branch information
KaiVolland committed Nov 2, 2023
2 parents 12a1625 + d049638 commit d7f22a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/view/form/AddArcGISRest.js
Expand Up @@ -463,6 +463,11 @@ Ext.define('BasiGX.view.form.AddArcGISRest', {
*/
getFeatureServerConfigs: function(response, layerConfig) {
var res = JSON.parse(response.responseText);

if (!res.layers) {
return [];
}

var configs = Ext.Array.map(res.layers, function(layer) {
var config = Ext.clone(layerConfig);
config.url = response.request.url;
Expand Down

0 comments on commit d7f22a4

Please sign in to comment.