improvement(netlify-cms-core): avoid redundant workflow status update (#1958)
This commit is contained in:
parent
06a649bc70
commit
42d6478117
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user