Support propless SDCs

Created on 22 July 2024, about 2 months ago
Updated 5 September 2024, 3 days ago

Overview

found in 📌 Create validation constraint for ComponentTreeStructure Needs work

$component_id = $tree->getComponentId($component_instance_uuid);
      try {
        $props_values = $value->resolveComponentProps($component_instance_uuid);
        $component = $this->componentPluginManager->find($component_id);
        $this->componentValidator->validateProps($props_values, $component);
      }

$props_values = $value->resolveComponentProps($component_instance_uuid); will throw an exception if
the component does not exist or it does exist but there are no props for the component in the props value. But not all components will have props. It could just have slots or I guess could have neither if props or slots.

#3460856 we have to fix the problem of the component not existing at all but here we should set up a test case where the component has no props

Proposed resolution

Check if the component has props defined before trying resolving them.

User interface changes

📌 Task
Status

Needs work

Component

Data model

Created by

🇺🇸United States tedbow Ithaca, NY, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024