Skip to content

Commit

Permalink
proactively defend against falsey snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Feb 5, 2022
1 parent 6364cdd commit cba075a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function SnippetsPage() {

return (
<div className="container">
{snippets.map(snippet => (
{snippets.filter(Boolean).map(snippet => (
<Snippet
key={snippet.id}
{...snippet}
Expand Down

0 comments on commit cba075a

Please sign in to comment.