Fix CommandMenu
not mapping over posts after converting to content collections and not navigating to posts onSelect
#258
Labels
bug
Something isn't working
The issue stems from the date object
pubDate
, after switching to content collections I changed the dates in blog post frontmatter to ISO style. So now when passingpost.data.pubDate
React receives a Date object which cannot be rendered as a direct child of a React component.In addition, I cannot use
data.post.url
to navigate to links, when using content collections the navigate function needs to be updated to(/posts/${post.slug}/)
The text was updated successfully, but these errors were encountered: