Busy 2.5.1 Bug: Edit post button doesn't show the post data in the editor initially
Project Information
- Repository: https://github.com/busyorg/busy
- Project Name: Busy
- GitHub Issue: https://github.com/busyorg/busy/issues/2057
Expected behavior
When you click the edit post button the title, body, tags etc... should show in the editor without needing to reload the page.
Actual behavior
The editor is blank until you refresh the page or go to another draft and back again.
How to reproduce
- Visit https://staging.busy.org
- Go to edit a post you have made
- You are taken to the editor page but the title, body, tags etc... are blank.
Recording Of The Bug
Possible solution
Introduced in #2054
This redirects to the editor before the user's metadata has been updated with the new draft
if (redirect) dispatch(push(`/editor?draft=${post.id}`));
The solution would be to redirect once the promise has been fulfilled
promise: addDraftMetadata(post).then(postMetadata => {
if (redirect) dispatch(push(`/editor?draft=${post.id}`));
return postMetadata;
})
...
GitHub Account
Leave Busy 2.5.1 Bug: Edit post button doesn't show the post data in the editor initially to:
Read more #utopian-io posts
Best Posts From Jake Rawsthorne
We have not curated any of jrawsthorne's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Jake Rawsthorne
- Introducing a new STEEM frontend: LiveSteem
- Would you use a frontend that functioned like a live chat?
- Something I've been testing out recently
- Querying Hivemind with GraphQL
- Busy 2.5.1 Bug: Duplicate comment when showing more replies from a nested comment page
- Busy 2.5.1 Bug: Edit post button doesn't show the post data in the editor initially
- Development Update #5: Comments, Loading States and Refresh Feeds
- Busy.org Bug: Post with no json_metadata crashes the whole page
- Development Update #4: Write New Post, Trending Posts and Upvote Post
- Test