Commit 0eb931cee87679a5b0e535bda4140e159e2fecff

Authored by Menouar AZIB
1 parent 61f5c9b1

fix bug

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
js/app/views/PlotComponents/PlotZoomPlug.js
... ... @@ -461,9 +461,10 @@ Ext.define('amdaPlotComp.PlotZoomPlug', {
461 461  
462 462 let request_to_send = {};
463 463  
464   - if (!me.plotFunctionType) {
  464 + if (!me.plotFunctionType || !me.plotFunctionType.parent) {
465 465 console.log("The component of Function Type is undefined");
466   - myDesktopApp.warningMsg('Error, try to close the plot function window and reopen it');
  466 + myDesktopApp.warningMsg('Error, please tryto reopen the plot function window');
  467 + me.win.close();
467 468 return;
468 469 }
469 470 request_to_send = Object.assign({}, me.plotFunctionType.getValues()/*, me.plotFunctionParamField.getValues()*/);
... ...