mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix tag field on publish
This commit is contained in:
parent
d575e058c2
commit
70a578ea2b
@ -29,12 +29,7 @@ const validationMetadata = {
|
|||||||
if (!value) return
|
if (!value) return
|
||||||
return await validateFieldSchaclSchema(path, value, createError)
|
return await validateFieldSchaclSchema(path, value, createError)
|
||||||
}),
|
}),
|
||||||
tags: Yup.string()
|
tags: Yup.array<string[]>().nullable(true),
|
||||||
.nullable(true)
|
|
||||||
.test(async (value, { path, createError }): Promise<any> => {
|
|
||||||
if (!value) return
|
|
||||||
return await validateFieldSchaclSchema(path, value, createError)
|
|
||||||
}),
|
|
||||||
termsAndConditions: Yup.boolean().isTrue()
|
termsAndConditions: Yup.boolean().isTrue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user