Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Fixed unnecessary "Are you sure you want to leave?" modals
no issue - if a post was saved before the body content was edited you would get stuck with an "Are you sure you want to leave?" modal even though you had already saved - the editor saw the post as being in a dirty state because the `mobiledoc` and `scratch` value were null but after saving the `mobiledoc` value was set to an blank mobiledoc object as returned by the API - updated the `post` model save method to reset the `scratch` value if the returned `mobiledoc` no longer matches
- Loading branch information