improvement(netlify-cms-core): avoid redundant workflow status update (#1958)

This commit is contained in:
Bartholomew 2018-12-17 20:59:39 +01:00 committed by Shawn Erquhart
parent 06a649bc70
commit 42d6478117

View File

@ -366,6 +366,7 @@ export function persistUnpublishedEntry(collection, existingUnpublishedEntry) {
export function updateUnpublishedEntryStatus(collection, slug, oldStatus, newStatus) {
return (dispatch, getState) => {
if (oldStatus === newStatus) return;
const state = getState();
const backend = currentBackend(state.config);
const transactionID = uuid();