Skip to content

Commit

Permalink
fix: remove unnecessary navigation blocker in EW
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Nov 17, 2023
1 parent fe4399e commit 91f8fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/decap-cms-core/src/actions/editorialWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export function persistUnpublishedEntry(collection: Collection, existingUnpublis
dispatch(unpublishedEntryPersisted(collection, serializedEntry));

if (entry.get('slug') !== newSlug) {
dispatch(loadUnpublishedEntry(collection, newSlug));
await dispatch(loadUnpublishedEntry(collection, newSlug));
navigateToEntry(collection.get('name'), newSlug);
}
} catch (error) {
Expand Down

0 comments on commit 91f8fe4

Please sign in to comment.