Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pkellner opened this issue Feb 29, 2024 · 2 comments
Open

Comments

@pkellner
Copy link

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
Copy link
Author

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

@pkellner
Copy link
Author

pkellner commented Mar 2, 2024

I think the problem is in this component.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant