Skip to content

Commit

Permalink
enum values in schema.json vs schema.ui.json (#4041) - feedback review
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn authored and dafeder committed Jul 26, 2024
1 parent 71bb1af commit baac757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function handleListElement(mixed $spec, array $element) {
*/
public function getDropdownElement(mixed $element, mixed $spec, mixed $titleProperty = FALSE) {
$element['#type'] = $this->getSelectType($spec);
if ($spec->source) {
if (isset($spec->source)) {
$element['#options'] = $this->getDropdownOptions($spec->source, $titleProperty);
}
if ($element['#type'] === 'select_or_other_select') {
Expand Down

0 comments on commit baac757

Please sign in to comment.