ocw-www: make image required on promo
Closed this issue · 2 comments
Currently, the build will fail if a promo doesn't have an image.
to maintain the page layout it seems like the easiest thing to do is require an image for all promos.
It looks like that required: true
is not working for widget: relation
. I tried to do some RnD on this issue and it turns out to be an issue in ocw-studio in this function, as in case of widget=relation
, yup.object
is being created with a content field here and required()
is being called on that (here) instead of the content field
inside.
This might also be the case with widget:Object
but I haven't tested it.
Though I'm not very sure as I haven't worked much with React formik. @alicewriteswrongs Do you have any thoughts on this?
@MAbdurrehman12 can you open a bug issue on ocw-studio, with steps to reproduce?