We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a6269 commit c60a7aeCopy full SHA for c60a7ae
zubhub_frontend/zubhub/src/views/create_project/script.js
@@ -693,21 +693,8 @@ export const validationSchema = Yup.object().shape({
693
// ? false
694
// : true;
695
// }),
696
- materials_used: Yup.string()
697
- .max(10000, 'max')
698
- .test('empty', 'required', value => {
699
- let is_empty = true;
700
-
701
- value &&
702
- value.split(',').forEach(material => {
703
- if (material) {
704
- is_empty = false;
705
- }
706
- });
707
708
- return !is_empty;
709
- }),
710
- category: Yup.string(),
+ materials_used: Yup.array().required('required'),
+ category: Yup.array(),
711
// tags: Yup.mixed().test('unsupported', 'unsupported', tags => {
712
// if (tags) {
713
// tags = JSON.parse(tags);
0 commit comments