chore: return when the paren entry is draft
This commit is contained in:
committed by
Khaled Garbaya
parent
6867659853
commit
9135162361
@@ -15,6 +15,7 @@ module.exports = async function attachEntryState (entry) {
|
|||||||
entry.pendingChanges = false
|
entry.pendingChanges = false
|
||||||
if (!publishedEntry) {
|
if (!publishedEntry) {
|
||||||
entry.draft = true
|
entry.draft = true
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// We group fields of type link (i.e. Only objects/array) from the same entry in preview and delivery
|
// 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) => {
|
const entriesToCompare = Object.keys(entry.fields).map((key) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user