Skip to content

Commit

Permalink
fix: entry disappears from workflow screen on failing to merge pull r…
Browse files Browse the repository at this point in the history
…equest (#5085)
  • Loading branch information
trfv authored Mar 11, 2021
1 parent 5c3c12e commit 20e89cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20e89cc

Please sign in to comment.