Skip to content

Commit

Permalink
Fix unsubmittable studio/tag forms (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
peolic authored May 21, 2022
1 parent c127b78 commit bc31ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/pages/studios/studioForm/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const StudioSchema = yup.object({
id: yup.string().required(),
name: yup.string().required(),
})
.nullable(),
.nullable()
.default(null),
note: yup.string().required("Edit note is required"),
});

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/tags/tagForm/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const TagSchema = yup.object({
name: yup.string().required(),
})
.nullable()
.defined(),
.default(null),
note: yup.string().required("Edit note is required"),
});

Expand Down

0 comments on commit bc31ea0

Please sign in to comment.