Skip to content

Discarding changes to a local post deletes the post #21940

@crazytonyli

Description

@crazytonyli

Expected behavior

Discarding new changes to a local post should only discard the new changes, not the whole post.

Actual behavior

In Gutenberg editor, when discard new changes to a local post, the local post is deleted.

Steps to reproduce the behavior

  1. Go to Posts list -> Draft.
  2. Turn off the iOS device's WiFi.
  3. Create a new post and tap Publish.
  4. Go back to the draft post list. You'll see a draft post that has not been uploaded to the site yet.
  5. Tap the draft post and make some changes.
  6. Tap the back button in the post editor and tap discard.
  7. Go back to the draft post list. The draft post is gone.

Here is a video recording:

local-post.mp4
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions