Skip to content

Commit

Permalink
fix publishing posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 15, 2024
1 parent 7f641a5 commit 3c5b582
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,10 @@ export const saveEntityRecord =
),
};
}
if ( persistedRecord?.status === 'auto-draft' ) {
if (
! edits.status &&
persistedRecord?.status === 'auto-draft'
) {
edits.status = 'draft';
}
updatedRecord = await __unstableFetch( {
Expand Down

0 comments on commit 3c5b582

Please sign in to comment.