Skip to content

Commit 6b18bb1

Browse files
committed
Fix: clear existing columns before pushing new sets of values.
1 parent 450b78b commit 6b18bb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Html/Builder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ public function add(Column $column)
406406
*/
407407
public function columns(array $columns)
408408
{
409+
$this->collection = new Collection;
410+
409411
foreach ($columns as $key => $value) {
410412
if (! is_a($value, Column::class)) {
411413
if (is_array($value)) {

0 commit comments

Comments
 (0)