Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(client/skills): make skill level optional

Amruth Pillai02e396bfdbf0
diff --git a/client/modals/builder/sections/SkillModal.tsx b/client/modals/builder/sections/SkillModal.tsx
index 9513ffb0f..278aa8fed 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<FormData>().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 }) => (
<TextField
- required
label={t('builder.common.form.level.label')}
error={!!fieldState.error}
helperText={fieldState.error?.message}
diff --git a/schema/src/section.ts b/schema/src/section.ts
index 452a641eb..26e0f8cf0 100644
--- a/schema/src/section.ts
+++ b/schema/src/section.ts
@@ -61,7 +61,7 @@ export type Publication = {
export type Skill = {
id?: string;
name: string;
- level: string;
+ level?: string;
levelNum: number;
keywords?: string[];
};