Skip to content

Commit 4587a36

Browse files
author
minjk-bl
committed
small changes
1 parent b2e35e0 commit 4587a36

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

js/com/component/InstanceEditor.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,10 @@ define([
431431
}
432432
}).catch(function(resultObj) {
433433
let { result } = resultObj;
434-
// show alert
435-
com_util.renderAlertModal(result.ename + ': ' + result.evalue);
434+
// show alert if this is visible
435+
if (that.pageThis.isHidden() == false) {
436+
com_util.renderAlertModal(result.ename + ': ' + result.evalue);
437+
}
436438
// callback
437439
if (callback) {
438440
callback('');

js/m_visualize/Chart.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,9 @@ define([
646646

647647
} catch (exmsg) {
648648
// show error on alert modal
649-
com_util.renderAlertModal(exmsg);
649+
if (this.isHidden() == false) {
650+
com_util.renderAlertModal(exmsg);
651+
}
650652
}
651653

652654
return sbCode.toString();

0 commit comments

Comments
 (0)