Skip to content

Commit

Permalink
fixed missing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
XeniosP committed Aug 8, 2023
1 parent fff544c commit e831350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/webcomponents/bisweb_connectivitycontrolelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,11 @@ const bisGUIConnectivityControl = function(parent,orthoviewer,layoutmanager) {
let out="";
try {
const ATLASHEADER=atlasutil.getCurrentAtlasHeader();
out=new BisParcellation(ATLASHEADER).createParcellationFromImage(vol,atlasimage,description)+"\n";
let m=new BisParcellation(ATLASHEADER);
out=m.createParcellationFromImage(vol,atlasimage,description)+"\n";
} catch(e) {
console.log('Error=',e);
bootbox.alert(e);
bootbox.alert("Failed to import parcellation image\n"+e);
reject(e);
return;
}
Expand Down Expand Up @@ -2603,7 +2604,6 @@ class ConnectivityControlElement extends HTMLElement {

loaddefaultatlas(externalmode) {


return new Promise( (resolve,reject) => {

let prom=null;
Expand Down

0 comments on commit e831350

Please sign in to comment.