Error when navigating to a component which doesn't have any props

Created on 4 August 2025, 4 days ago

Overview

  1. Create a component with no props
  2. Add the component with no props to the page
  3. Select component instance which has props
  4. Select the component instance which has no props
  5. Confirm there's an error. Click try again and see that the empty form is rendered now

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

1.0

Component

… to be triaged

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lauriii
  • 🇮🇳India libbna New Delhi, India

    Hi @lauriii I followed the steps you mentioned to reproduce the issue, but I wasn’t able to replicate it on my end.
    I’ve attached a screen recording as proof.

  • 🇺🇸United States bnjmnm Ann Arbor, MI

    I'm running into the same scenario as #2 when I followed the steps to reduce, though it's not using the exact components in the report so perhaps there's something specific that can unlock the reproducibility?

    Based on the error message, this could be in a few places where it should be safe to assume the resolved property exists. I suspect there's a timing issue with selectedModel being undefined when we don't expect it, but hopefully we can confirm that with a little more info.

  • 🇮🇱Israel heyyo Jerusalem

    I remember I had trouble to add a SDC without prop, until I found it's not enough to not add the props key, but instead we need to declare an empty props structure.

    https://www.drupal.org/docs/develop/theming-drupal/using-single-director...

    props:
      type: object
      properties: {}
    

    Maybe that's the issue @Laurii encountered

Production build 0.71.5 2024