Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Fix JavaScript length error from Add Set button label #10217

Merged
merged 1 commit into from
May 29, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes a JavaScript error that'd be thrown on Replicator fields, where no "Add Set Label" has been configured.

The label was undefined, so calling .length on it was causing an error. I wasn't able to reproduce the save issue reported in the issue but this fix prevents the JS error for me.

Fixes #10210.

@jasonvarga jasonvarga merged commit 28c6545 into 5.x May 29, 2024
16 checks passed
@jasonvarga jasonvarga deleted the fix/length-error-from-add-set-button branch May 29, 2024 13:44
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.

JS errors with replicator fields in v5.6.0
2 participants