Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jan 13, 2025
1 parent c084c6c commit c9d559a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/backend/widgets/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ public function renderField($field, $options = [])
$field = $this->allFields[$field];
}

if (!isset($options['useContainer'])) {
$options['useContainer'] = true;
}
$targetPartial = $options['useContainer'] ? 'field-container' : 'field';
$targetPartial = ($options['useContainer'] ?? true) ? 'field-container' : 'field';

return $this->makePartial($targetPartial, ['field' => $field]);
}
Expand Down

0 comments on commit c9d559a

Please sign in to comment.