Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Sep 5, 2024
1 parent f62e4c8 commit 6d24660
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/GridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,7 @@ protected function renderItems(array $items, ValidationResult $filterValidationR
$context = new DataContext($column, $value, $key, $index);
$cell = $renderers[$i]->renderBody($column, new Cell($this->bodyCellAttributes), $context);
$tags[] = $cell->isEmptyContent()
? Html::td(attributes: $this->emptyCellAttributes)
->content($this->emptyCell)
->encode(false)
? Html::td($this->emptyCell, attributes: $this->emptyCellAttributes)->encode(false)
: Html::td(attributes: $this->prepareBodyAttributes($cell->getAttributes(), $context))
->content(...$cell->getContent())
->encode($cell->isEncode())
Expand Down

0 comments on commit 6d24660

Please sign in to comment.