From ed4b7f8641b1a8303561da61fabc8cf57af16471 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 22 Oct 2024 09:31:43 +0300 Subject: [PATCH] Refactor --- apps/showcase/doc/select/FormDoc.vue | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/showcase/doc/select/FormDoc.vue b/apps/showcase/doc/select/FormDoc.vue index 0439ee568..0cb7099b2 100644 --- a/apps/showcase/doc/select/FormDoc.vue +++ b/apps/showcase/doc/select/FormDoc.vue @@ -33,24 +33,15 @@ export default { resolver: null, schema: z.object({ city: z.object({ - name: z - .string() - .min(1, 'City option cannot be empty.') - .refine((val) => val !== '', { - message: 'City should be selected.' - }) + name: z.string().min(1, 'City should be selected.') }) }), code: { basic: `
- - {{ $form.username.errors[0]?.message }} -
-
- - {{ $form.email.errors[0]?.message }} +