chore: return when the paren entry is draft

This commit is contained in:
Khaled Garbaya
2017-12-14 11:03:02 +01:00
committed by Khaled Garbaya
parent 6867659853
commit 9135162361

View File

@@ -15,6 +15,7 @@ module.exports = async function attachEntryState (entry) {
entry.pendingChanges = false
if (!publishedEntry) {
entry.draft = true
return
}
// We group fields of type link (i.e. Only objects/array) from the same entry in preview and delivery
const entriesToCompare = Object.keys(entry.fields).map((key) => {