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

[sitecore-jss] Bugfix to prevent error: Cannot use ‘in’ operator to search for ‘editable’ in ' #1768

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Commits on Apr 1, 2024

  1. Fix: prevent Cannot use ‘in’ operator to search for ‘editable’ in

    To reproduce the issue "Cannot use the 'in' operator to search for 'editable' in [SOME-GUIDS]," follow these steps:
    
    * Create a Page Template.
    * Create a Page Design.
    * Create an Instance of a page.
    * Override the Page Design from the Dropdown in the Content Editor.
    * From a multilist, select the page which has the Page Design overwritten.
    
    Upon completing these steps, you may encounter the error message. This issue could be due to the structure of Partial Designs, which should ideally follow the {value, editable} structure instead of the provided structure:
    {
      "fields": {
        "PartialDesigns": "SOME GUIDS"}"
      }
    }
    
    The solution is to validate if field is type of string then were are on this scenario.
    RobertoArmas authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    53508d8 View commit details
    Browse the repository at this point in the history