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/08/03 06:57:43 UTC

[echarts-examples] branch gh-pages updated: fix(editor): fix logic flaw

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 f08f664a fix(editor): fix logic flaw
f08f664a is described below

commit f08f664ae498f19946782f95e6647d92490bd761
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Aug 3 14:57:14 2022 +0800

    fix(editor): fix logic flaw
---
 src/common/store.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/store.js b/src/common/store.js
index 35564103..b006cc79 100644
--- a/src/common/store.js
+++ b/src/common/store.js
@@ -115,7 +115,7 @@ export function loadExampleCode() {
         // PENDING fallback to `c` if the decompressed code is not available?
         const code = decompressStr(URL_PARAMS.code);
         // not considered as shared code if it's opened by echarts website like echarts-doc
-        store.isSharedCode = !!(isOpenedByEChartsWebsite() || code);
+        store.isSharedCode = !isOpenedByEChartsWebsite() && !!code;
         return code
           ? resolve(code)
           : reject('code was decompressed but got nothing');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org