diff --git a/ui/src/router/components/form/validation/schema.js b/ui/src/router/components/form/validation/schema.js index d2c8d5cf0..6f2dbd13b 100644 --- a/ui/src/router/components/form/validation/schema.js +++ b/ui/src/router/components/form/validation/schema.js @@ -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