From d788b389d697bdfc5594771606878f6d6bf6fe2b Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 13 May 2024 17:46:46 -0700 Subject: [PATCH] fix: guard against null entries --- config/filters/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/config/filters/index.js b/config/filters/index.js index bbf08906..35e62f36 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -141,6 +141,7 @@ export default { // feeds normalizeEntries: (entries) => { const posts = [] + if (!entries.length) return posts entries.forEach((entry) => { const dateKey = Object.keys(entry).find((key) => key.includes('date')) const date = new Date(entry[dateKey])