Skip to content

Commit

Permalink
Make when callback function receive an array instead of a singular value
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Aug 7, 2024
1 parent 6ef47af commit c11d725
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 c11d725

Please sign in to comment.