From 9135162361772301439efeccf30ca3ffc32ed209 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Thu, 14 Dec 2017 11:03:02 +0100 Subject: [PATCH] chore: return when the paren entry is draft --- lib/entry-state.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/entry-state.js b/lib/entry-state.js index 945c6c9..be252e2 100644 --- a/lib/entry-state.js +++ b/lib/entry-state.js @@ -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) => {