diff --git a/src/backends/backend.js b/src/backends/backend.js index 6e3bfdae..d6e633d0 100644 --- a/src/backends/backend.js +++ b/src/backends/backend.js @@ -201,10 +201,13 @@ class Backend { )) .then(entries => ({ pagination: 0, - entries: entries.map(entry => { + entries: entries.reduce((acc, entry) => { const collection = collections.get(entry.collection); - return this.entryWithFormat(collection)(entry); - }), + if (collection) { + acc.push(this.entryWithFormat(collection)(entry)); + } + return acc; + }, []), })); }