RENCI / APSViz-UI-V3

The APSViz UI, version 3
0 stars 0 forks source link

Control panel - More error handling #80

Open PhillipsOwen opened 1 month ago

PhillipsOwen commented 1 month ago

i am seeing this in control-panel.js, lines 107-111 (see below).

as this is an async event, this area may also need more error handling to insure that "data" exists before it is used.

also, the axios call should be using the /get_ui_data_secure endpoint.

if (isError) { alert(error); } else {} // add data returned to default layers, if they are not already there. parseAndAddLayers(data);