always .map() an array

This commit is contained in:
2026-06-05 11:22:33 +02:00
parent 72bd7f877c
commit 752a7e4012
+1 -1
View File
@@ -25,7 +25,7 @@ allPosts.forEach(post => {
{allPosts.length === 0 && <p>No posts as of yet, hop back later!</p>} {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) || []; const posts = categorizedPosts.get(category) || [];
return ( return (
<div> <div>