Skip to content

Commit

Permalink
Use correct Set.add invocation in Checkbox Validator
Browse files Browse the repository at this point in the history
The [Set.add]() method doesn't accept variable arguments. To replace the
`...` splatting, this commit loops over values and adds them
individually.

[Set.add]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add
  • Loading branch information
seanpdoyle committed Oct 8, 2024
1 parent dd26529 commit 89c8c3b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* Use `Set.add` correctly

*Sean Doyle*

## 0.1.1 - 2024-09-27

* Expand version matrix to include `[email protected]` and `[email protected]`
Expand Down
6 changes: 5 additions & 1 deletion app/assets/javascripts/constraint_validations.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/constraint_validations.es.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion app/assets/javascripts/constraint_validations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 89c8c3b

Please sign in to comment.