Skip to content

Commit 5d648ee

Browse files
author
Fabian Mangelsdorf
committed
fix wrong restore sort direction
1 parent 529fe76 commit 5d648ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Livewire/LivewireDatatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ public function initialiseSort()
618618
return in_array($column['type'], Column::UNSORTABLE_TYPES) || $column['hidden'];
619619
})->keys()->first();
620620

621-
$this->getSessionStoredSort();
622621
$this->direction = $this->defaultSort() && $this->defaultSort()['direction'] === 'asc';
622+
$this->getSessionStoredSort();
623623
}
624624

625625
public function initialiseHiddenColumns()

0 commit comments

Comments
 (0)