Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2025 at 17:21 UTC
Updated:
28 Oct 2025 at 18:44 UTC
Jump to comment: Most recent
Comments
Comment #3
andyg5000Comment #6
just_like_good_vibesDear andyg5000,
thank you for reporting.
As already mentioned in the code, sdc component definitions without names is not a good practice, and those changes would rather being made directly to the mentioned themes.
But to support those practices in the wild, i have just updated the code :)
Note that there was already a line of code to cope with definition's names missing , but it seems that in your use case
processDefinitionCategorywas called without a prior call toprocessDefinition, seems strange to me but anyway i have added this new check and factorize the existing behavior inside a new protected method "cleanDefinition" instead of duplicating it in processDefinition and processDefinitionCategory.MR to review is [!448]
Comment #8
pdureau commentedComment #10
just_like_good_vibes