builder icon indicating copy to clipboard operation
builder copied to clipboard

Conflict with options url.searchParams and enrich: true

Open MaximeGratens opened this issue 1 year ago • 1 comments

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

MaximeGratens avatar Mar 28 '24 10:03 MaximeGratens

@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?

mrkoreye avatar Apr 09 '24 15:04 mrkoreye