Skip to content

Conversation

@jasonvarga
Copy link
Member

While backporting #13708 to v5, I realized that the whole "show the 6th asset in place of the +1" logic wasn't even working as described. When you had 6 assets, you'd only get 5 and no +1.

The slice length is fixed now.

Also, it was using splice, which in Vue 2 was causing an infinite re-render. Changing splice to slice fixes that - splice modifies the original array and slice makes a new one. Doesn't have that problem in Vue 3 but doesn't hurt to fix it.

@jasonvarga jasonvarga merged commit ddd4300 into 6.x Jan 30, 2026
12 checks passed
@jasonvarga jasonvarga deleted the asset-index-fieldtype-slice branch January 30, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants