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:
parent
65756ead66
commit
b08c40de39
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue