1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Proper Pintura loading error handling (nested promise)

This commit is contained in:
Ricardo Hernandez-Montoya 2018-01-10 16:17:12 +01:00
parent 65756ead66
commit b08c40de39

View file

@ -120,7 +120,7 @@ class WidgetTopology extends React.Component {
this.setState({'visualizationState': 'ready' });
window.cimxml.clearXmlData()
window.cimsvg.setFileCount(1);
response.text().then( contents => {
return response.text().then( contents => {
window.cimsvg.loadFile(contents);
attachComponentEvents();
});