From c5a4aaa917f7e96f4547035f4db0d4827f894765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cemalettin=20Ta=C5=9F?= Date: Sun, 13 Dec 2020 22:14:15 +0300 Subject: [PATCH] fix(schema): Don't initialized spec values with undefined (jquense/yup#1160) --- src/schema.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index 7ffaccd91..d80d1d841 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -137,8 +137,6 @@ export default abstract class BaseSchema< strict: false, abortEarly: true, recursive: true, - label: undefined, - meta: undefined, nullable: false, presence: 'optional', ...options?.spec,