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

Conflict with options url.searchParams and enrich: true #3081

Open
MaximeGratens opened this issue Mar 28, 2024 · 1 comment
Open

Conflict with options url.searchParams and enrich: true #3081

MaximeGratens opened this issue Mar 28, 2024 · 1 comment

Comments

@MaximeGratens
Copy link

Hello,

Describe the bug
When we are passing the url search params to a page and using enrich true. The state of the relation object loaded, for example, an Author, are also dummy. And this is a real problem because we can't access to the property name and we can't build the page.

To Reproduce
Steps to reproduce the behavior:

  1. Create a page and don't publish it
  2. Create a model Author and create with property first and last name for example
  3. Load the Author to the page in builder.io
  4. You can't access to the property first name of the author because the author is replaced by a dummy object.

Additional context
Node 20, remix js, sdk-react 2

@mrkoreye
Copy link
Collaborator

mrkoreye commented Apr 9, 2024

@MaximeGratens thanks for the report. Can you clarify what you mean by "dummy" object? Is there a builder.io content entry (builder.io/content/) that you can share with us that demonstrates the issue?

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

No branches or pull requests

2 participants