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 2024/02/23 02:42:15 UTC

(echarts-examples) branch gh-pages updated: fix nightly version list

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 18725759 fix nightly version list
18725759 is described below

commit 187257595fd5f9a560e86b14a9a1aadae062285f
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Fri Feb 23 10:41:11 2024 +0800

    fix nightly version list
---
 src/editor/Preview.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 05e078e3..58fc260d 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -644,7 +644,7 @@ export default {
         const nextIdx = versions.indexOf(next);
         const latestIdx = versions.indexOf(latest);
         this.nightlyVersions = versions
-          .slice(nextIdx, nextIdx + 10)
+          .slice(nextIdx, Math.min(nextIdx + 10, latestIdx))
           .concat(versions.slice(latestIdx, latestIdx + 10));
 
         hasPRVersion && this.nightlyVersions.unshift(prVersion);


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