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

RichText type doesn't update #248

Open
bosbode opened this issue Jun 23, 2022 · 4 comments
Open

RichText type doesn't update #248

bosbode opened this issue Jun 23, 2022 · 4 comments
Labels
do not track Do not track this issue on the Prismic OSS Dashboard question A question about the package

Comments

@bosbode
Copy link

bosbode commented Jun 23, 2022

When making a title in slicemachine, I forgot the change the type. So I pushed it to prismic.io and saw that the title gets displayed as a paragraph tag. I then changed the type in slicemachine to "heading 1", and after pushing, I see the change reflected on prismic.io. But when fetching data the type stays "paragraph". Not updating to "heading 1".

@bosbode bosbode added the bug Something isn't working label Jun 23, 2022
@github-actions
Copy link

You created this issue using the 🚨 Bug report template therefore it has been flagged as such.

Hi there, thank you so much for your contribution!

Following our Maintenance process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue include the following:

  • Information about your environment and packages you use (Node version, package names & versions, etc.)
    Feel free to attach a copy of your package.json file.
  • Any troubleshooting steps you already went through
  • A minimal reproduction of the issue, and/or instructions on how to reproduce it

If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request addressing it. Check out our quick start guide for a simple contribution process.

If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io

- Prismic Open-Source team

@bosbode bosbode changed the title PrismicRichText type doesn't update RichText type doesn't update Jun 23, 2022
@lihbr lihbr added question A question about the package and removed bug Something isn't working labels Jun 23, 2022
@lihbr
Copy link
Member

lihbr commented Jun 23, 2022

Hi there, thanks for opening an issue!

From my understanding, this is actually the intended behavior. The API response of said document won't change until you republish that document (as otherwise, just pushing a custom type could break your current website).

This should fix itself after saving and publishing that document again.

I'm gonna close the issue for now, feel free to reopen it if you still encounter trouble after saving/publishing documents ☺️

@lihbr lihbr closed this as completed Jun 23, 2022
@bosbode
Copy link
Author

bosbode commented Jun 24, 2022

Hi, thanks for the reply.

I tried republishing the document, by changing something in an attached slide. But that didn't work. It only worked when changing the title to something else and then changing it back.

@lihbr
Copy link
Member

lihbr commented Jun 24, 2022

Thanks! I'm investigating that with our product team to confirm what's supposed to be the behavior in that scenario.

@lihbr lihbr reopened this Jun 24, 2022
@angeloashmore angeloashmore added the do not track Do not track this issue on the Prismic OSS Dashboard label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not track Do not track this issue on the Prismic OSS Dashboard question A question about the package
Projects
None yet
Development

No branches or pull requests

3 participants