Skip to content

Commit 44c2d0e

Browse files
authored
Update TableRenderer.php
1 parent 853e738 commit 44c2d0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/renderers/TableRenderer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,15 @@ public function renderCellContent($column, $index)
218218
}
219219

220220
$hasError = false;
221+
$error = '';
221222

222223
if ($index !== null) {
223224
$error = $column->getFirstError($index);
224225
$hasError = !empty($error);
226+
}
225227

226-
if ($column->enableError) {
227-
$input .= "\n" . $column->renderError($error);
228-
}
228+
if ($column->enableError) {
229+
$input .= "\n" . $column->renderError($error);
229230
}
230231

231232
$wrapperOptions = [
@@ -309,4 +310,4 @@ protected function prepareTemplate()
309310
{
310311
return $this->renderRowContent();
311312
}
312-
}
313+
}

0 commit comments

Comments
 (0)