From 20e89cc5e2d90821c5fa7bb9d455597c0a3e9d80 Mon Sep 17 00:00:00 2001 From: senda_y <35182743+trfv@users.noreply.github.com> Date: Thu, 11 Mar 2021 21:02:24 +0900 Subject: [PATCH] fix: entry disappears from workflow screen on failing to merge pull request (#5085) --- packages/netlify-cms-core/src/reducers/editorialWorkflow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/src/reducers/editorialWorkflow.ts b/packages/netlify-cms-core/src/reducers/editorialWorkflow.ts index fd6aef50..a7d50888 100644 --- a/packages/netlify-cms-core/src/reducers/editorialWorkflow.ts +++ b/packages/netlify-cms-core/src/reducers/editorialWorkflow.ts @@ -128,12 +128,12 @@ function unpublishedEntries(state = Map(), action: EditorialWorkflowAction) { ); case UNPUBLISHED_ENTRY_PUBLISH_SUCCESS: - case UNPUBLISHED_ENTRY_PUBLISH_FAILURE: return state.deleteIn(['entities', `${action.payload!.collection}.${action.payload!.slug}`]); case UNPUBLISHED_ENTRY_DELETE_SUCCESS: return state.deleteIn(['entities', `${action.payload!.collection}.${action.payload!.slug}`]); + case UNPUBLISHED_ENTRY_PUBLISH_FAILURE: default: return state; }