From 6aec2cd85ee14fa9106f603791bca09db2460028 Mon Sep 17 00:00:00 2001 From: ewezy Date: Wed, 24 Jul 2024 18:25:11 +0800 Subject: [PATCH] Fix incorrect yup schema --- ui/src/router/components/form/validation/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/router/components/form/validation/schema.js b/ui/src/router/components/form/validation/schema.js index 141493229..d2c8d5cf0 100644 --- a/ui/src/router/components/form/validation/schema.js +++ b/ui/src/router/components/form/validation/schema.js @@ -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;