You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/07/25 06:36:14 UTC
[echarts-examples] branch gh-pages updated: fix(editor): fix chart can't be updated once error occurs.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 50263976 fix(editor): fix chart can't be updated once error occurs.
50263976 is described below
commit 50263976cfb4b74c09aa4a610c1667b1dc1cc561
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Mon Jul 25 14:32:48 2022 +0800
fix(editor): fix chart can't be updated once error occurs.
---
src/editor/sandbox/setup.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/editor/sandbox/setup.js b/src/editor/sandbox/setup.js
index ed889d56..85b64013 100644
--- a/src/editor/sandbox/setup.js
+++ b/src/editor/sandbox/setup.js
@@ -337,6 +337,8 @@ function setup(isShared) {
const option = res[0];
echarts.util.isObject(option) && chartInstance.setOption(option, true);
} catch (e) {
+ // PENDING: prevent chart can't be updated once error occurs
+ chartInstance.__flagInMainProcess = false;
console.error('failed to run code', e);
sendMessage({ evt: 'codeError', message: e.message });
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org