mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-06-29 12:36:18 +00:00
always .map() an array
This commit is contained in:
@@ -25,7 +25,7 @@ allPosts.forEach(post => {
|
||||
{allPosts.length === 0 && <p>No posts as of yet, hop back later!</p>}
|
||||
|
||||
{
|
||||
categorizedPosts.keys().map(category => {
|
||||
categorizedPosts.keys().toArray().map(category => {
|
||||
const posts = categorizedPosts.get(category) || [];
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user