app/Http/Livewire/Traits/WithSort.php: rename sort_map to sort_columns
This commit is contained in:
parent
152b22c3c6
commit
8a460b3deb
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ trait WithSort {
|
|||
*/
|
||||
public function sort($column)
|
||||
{
|
||||
if (!array_key_exists($column, $this->sort_map)) {
|
||||
if (!array_key_exists($column, $this->sort_columns)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ trait WithSort {
|
|||
return;
|
||||
}
|
||||
|
||||
$columns = $this->sort_map[$this->sort];
|
||||
$columns = $this->sort_columns[$this->sort];
|
||||
|
||||
if (!is_array($columns)) {
|
||||
$columns = [ $columns ];
|
||||
|
|
|
|||
Reference in a new issue