Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "Edit Post" node in the toolbar not working when previewing posts #1515

Closed
renatonascalves opened this issue Aug 1, 2023 · 3 comments · Fixed by #1556
Closed

Bug: "Edit Post" node in the toolbar not working when previewing posts #1515

renatonascalves opened this issue Aug 1, 2023 · 3 comments · Fixed by #1556
Labels

Comments

@renatonascalves
Copy link

renatonascalves commented Aug 1, 2023

Applicable Versions

  • @faustjs/core version: 1.0.3
  • @faustjs/react version: Not used.
  • @faustjs/next version: Not used.
  • WordPress version: 6.2.2

I followed this "Get started with Faust" guide: https://faustjs.org/tutorial/get-started-with-faust

Steps To Reproduce

preview.mov

Link to code example:

See this Github issue for a technical overview of the problem: wp-graphql/wp-graphql#2876

The expected behavior

I expected the "Edit Post" toolbar node to be available when previewing posts and the link should point me to the edit post screen of the post I'm previewing it.

@renatonascalves
Copy link
Author

There is one way Faust could handle this in the meantime. Getting the id in the params and swap for the one in the response. In that way, the edit post toolbar node would be available.

@mindctrl
Copy link
Member

mindctrl commented Aug 1, 2023

@renatonascalves thank you for the report! Added to our backlog and we'll take a look at this as soon as possible.

@mindctrl
Copy link
Member

PR in progress here: #1556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants