Skip to content

Commit

Permalink
Fix incorrect yup schema (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts authored Jul 24, 2024
1 parent 1c83ad3 commit 440a04a
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 @@ -130,7 +130,7 @@ const routeSchema = yup.object().shape({
});

const validRouteSchema = yup
.object()
.string()
.test("valid-route", "Valid route is required", function(value) {
const configSchema = this.from.slice(-1).pop();
const { routes } = configSchema.value.config;
Expand Down

0 comments on commit 440a04a

Please sign in to comment.