Skip to content

Commit

Permalink
Make when callback function receive an array instead of a singular va…
Browse files Browse the repository at this point in the history
…lue (#83)
  • Loading branch information
deadlycoconuts authored Aug 8, 2024
1 parent 4aee007 commit efc4e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/settings/components/form/validation/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const schema = [
names: yup
.array()
.test("segmenter-dependencies", validateSegmenterSelection),
variables: yup.object().when("names", (names, schema) => {
variables: yup.object().when("names", ([names], schema) => {
const shape = names.reduce((acc, name) => {
acc[name] = yup
.array()
Expand Down

0 comments on commit efc4e48

Please sign in to comment.