ignore unpublished entries from unknown collections
This commit is contained in:
parent
38c7ef94cd
commit
2a3b2d19fe
@ -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;
|
||||
}, []),
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user