Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Relationships and Uploads disappearing in Globals after save #30

Closed
arieltonglet opened this issue May 18, 2023 · 3 comments
Closed

Relationships and Uploads disappearing in Globals after save #30

arieltonglet opened this issue May 18, 2023 · 3 comments

Comments

@arieltonglet
Copy link

Describe the bug

I guess this is related to issue #14

After hitting "Save" button, text content is saved but relationships and upload disappears from browser.
Refreshing the page loads up the previously saved content.

To Reproduce

  • Cloned next-payload-demo
  • Changed .env and configured GCS for media
  • Added relationship and upload fields
  • Run yarn dev
  • Make a change in fields and save

Expected behavior

Updated content should be still visible after save.

Screenshots/Video

Screen.Recording.2023-05-18.at.15.52.32.mov
@arieltonglet
Copy link
Author

Hey guys, could you reproduce this? I ended up having to add a custom save button that reloads the page after save (kind of sidestepping the problem, but not pretty at all)

This could look like a minor bug, but: if the field in question is not required and the user is not paying attention to it, saving the global a second time will erase all data from these fields.

It was frustrating to find out what was happening, because some data was being (seemingly randomly) erased. At first I even thought it was a DB error :/

If the field is required, the user will get a lot of errors when trying to save it again.

Anyway, just wanted to check on this :)

@jmikrut
Copy link
Member

jmikrut commented Jun 26, 2023

Hey @arieltonglet — sorry for the delay in response here! This is now fixed and released. Just update and you should be good to go.

Also, we plan to put more time and energy into this repo, so you should see future fixes coming in at a more consistent rate. Thanks again for hanging in here.

@arieltonglet
Copy link
Author

Hi @jmikrut tanks a lot for the fix! So glad to hear that next-payload will be getting more attention :)

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

No branches or pull requests

2 participants