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
  • Loading branch information
deadlycoconuts authored Aug 8, 2024
1 parent c1924b4 commit e850d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/router/components/form/validation/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const resourceRequestSchema = (maxAllowedReplica) =>
maxAllowedReplica,
"Max Replicas value has exceeded allowed number of replicas: ${max}"
)
.when("min_replica", (minReplica, schema) =>
.when("min_replica", ([minReplica], schema) =>
minReplica === 0
? schema.positive("Max Replica should be positive")
: schema
Expand Down

0 comments on commit e850d9d

Please sign in to comment.