From 02e396bfdbf07ae75661f1e7e4e55060cacee7d0 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Mon, 14 Mar 2022 10:26:57 +0100 Subject: [PATCH] fix(client/skills): make skill level optional --- client/modals/builder/sections/SkillModal.tsx | 3 +-- schema/src/section.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/modals/builder/sections/SkillModal.tsx b/client/modals/builder/sections/SkillModal.tsx index 9513ffb0..278aa8fe 100644 --- a/client/modals/builder/sections/SkillModal.tsx +++ b/client/modals/builder/sections/SkillModal.tsx @@ -29,7 +29,7 @@ const defaultState: FormData = { const schema = Joi.object().keys({ id: Joi.string(), name: Joi.string().required(), - level: Joi.string().required(), + level: Joi.string().allow(''), levelNum: Joi.number().min(0).max(10).required(), keywords: Joi.array().items(Joi.string().optional()), }); @@ -109,7 +109,6 @@ const SkillModal: React.FC = () => { control={control} render={({ field, fieldState }) => (