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

Empty payload body connect when recreating a repeatable component with the same relation #20133

Open
stevensturkop opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@stevensturkop
Copy link

stevensturkop commented Apr 17, 2024

Bug report

Required System information

  • Node.js version:
  • NPM version: 20.11.0
  • Strapi version: 4.22.1
  • Database: PostgreSQL
  • Operating system: MacOS Sonoma 14.4.1
  • Is your project Javascript or Typescript: Javascript

Describe the bug

When I delete a repeatable component, along with its associated relations, and subsequently recreate the identical component, I get an empty payload body connect: []. However, if I recreate the same component while selecting a different relation, the payload body connect: [new_relation] includes the newly chosen relation (video attached below)

Steps to reproduce the behavior

(see the screenshots for the content types structure)

  1. Create a new shelves component
  2. Add a title
  3. Select a product relation
  4. Save
  5. Open the console and see the payload connect array containing the selected product
  6. Delete the shelves component
  7. Create a new shelves component
  8. Add a title
  9. Select the same product as previously
  10. Save
  11. Open the console and this time the payload connect does not contain the selected product

Expected behavior

At step 9 if you were to select a different product, then the connect payload would contain the newly selected product.
So I'd expect the connect array to contain whatever product was selected.

Screenshots

Current structure of the component:
Screenshot 2024-04-17 at 12 39 38

Demo

Everytime I delete the component and recreate using the same relation, the connect payload is empty. However, as soon as I recreate it with a new relation, it is included in the connect array.

Screen.Recording.2024-04-17.at.12.51.45.mov
@joshuaellis joshuaellis added issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed
Status: To review
Development

No branches or pull requests

3 participants