-
Notifications
You must be signed in to change notification settings - Fork 275
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
When the layout query stop expanding references, traversefield method crashes #1867
Comments
Thanks @minyiediazvelir for submitting this. I am adding this to our backlog for prioritization. |
We got this issue as well. Sitecore support suggested us to copy the original SDK file and apply the fix to our copy. Then use our copy instead of the SDK version. Here is our copy of the SDK file
And our usage of it in
|
Describe the Bug
When the standard layout query stops expanding references, it returns the guid value of the field which is expected.
But the traverse method doesn't handle this case and it crashes.
Example error
Cannot use 'in' operator to search for 'editable' in {77F1D209-AC8C-4945-A5C8-9FCCC93AFE4F}
at traverseField (/opt/build/repo/src/acr/node_modules/@sitecore-jss/sitecore-jss-nextjs/node_modules/@sitecore-jss/sitecore-jss/dist/cjs/layout/content-styles.js:42:20)To Reproduce
Create a sitecore item that has a reference field to another item, then the other item have a field that reference another item and so on do it 4 times.
Expected Behavior
I would expect to ignore it.
Possible Fix
No response
Provide environment information
The text was updated successfully, but these errors were encountered: