Thinkmill / keystatic-demo-blog

https://keystatic-demo-blog.vercel.app
10 stars 4 forks source link

When leaving out attribute socialLink, the keystone post editor crashes #14

Open pkellner opened 4 months ago

pkellner commented 4 months ago

If in the blog post that uses the testimonial content component, you remove the attribute for socialLink, the /keystatic editor fails saying "Field validation failed: content: Must be a string". I've looked over the schema and have no idea what could cause that.

https://github.com/Thinkmill/keystatic-demo-blog/blob/main/content/posts/biometric-authentication-how-it-works-and-why-it-s-more-secure-than-passwords/content.mdoc

works

{% testimonial
   quote="Biometric authentication provides a secure and convenient access. No more passwords to remember or steal. Just my face or fingerprint, easy and seamless."
   author="Stella Hawkins"
   workplaceOrSocial="Senior account manager"
   socialLink="https://google.com" /%}

broken:

{% testimonial
   quote="Biometric authentication provides a secure and convenient access. No more passwords to remember or steal. Just my face or fingerprint, easy and seamless."
   author="Stella Hawkins"
   workplaceOrSocial="Senior account manager"
pkellner commented 4 months ago

I should also add that, if in the editor, you leave the social field blank, you get the same failure

pkellner commented 4 months ago

I think the problem is in this component.

image