You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UI for adding Tags is displayed correctly, and adding tags through it results in something like this:
tags:
- label: Sveltecolor: primaryfieldGroup: tag
However, when after saving the file, the Dashboard immediately crashes. On developer tools, I was able to get the error message:
Objects are not valid as a React child (found: object with keys {label, color, fieldGroup}). If you meant to render a collection of children, use an array instead.
Removing the tags field or leaving it empty ([]) makes the dashboard open again.
Huh, the issue seems to be with the tags/tag name. Just changing the name of the field fixed it. Probably tags is hardcoded in a few places to make the default tags work?
Thank you @matfantinel for opening and letting me know the solution. tags and categories are indeed two field types, which might cause issues, but will have a look if we can make the experience better and not let the CMS crash.
Describe the bug
I've started using fieldGroups in my Frontmatter config to add a "tag" object, defined in frontmatter.json like this:
This is used in a content type called "Work Experience", and the Tags prop is defined like this:
The UI for adding Tags is displayed correctly, and adding tags through it results in something like this:
However, when after saving the file, the Dashboard immediately crashes. On developer tools, I was able to get the error message:
Removing the tags field or leaving it empty (
[]
) makes the dashboard open again.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the dashboard to open
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: