Update ShowPlanes.php

This commit is contained in:
Lizandro Guarnizo
2024-03-09 17:03:51 -05:00
parent d4dc45fc47
commit ffc5027789
+8 -2
View File
@@ -95,7 +95,7 @@ class ShowPlanes extends Component
public $activoHoy;
public $libres = null;
public $delete_1 = ['1'];
public $delete_1 = [];
public $tarifas;
public $addUser;
public $usuarios;
@@ -717,7 +717,13 @@ class ShowPlanes extends Component
}
public function seleccionarTodos(){
$this->delete_1 = array_column($this->cont['data'], 'id');
if (count($this->delete_1)== 0) {
$this->delete_1 = array_column($this->cont['data'], 'id');
} else {
$this->delete_1 = [];
}
//dd($this->delete_1);
}