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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to