Enhance Proxmox components with input validation, error handling, and UI improvements
This commit is contained in:
@@ -74,6 +74,13 @@ class Reinstall extends Component
|
||||
|
||||
public function render()
|
||||
{
|
||||
if (!$this->server->node) {
|
||||
return view('proxmox::reinstall', [
|
||||
'osList' => collect(),
|
||||
'isProtected' => $this->isProtected,
|
||||
]);
|
||||
}
|
||||
|
||||
// assuming Server has relation `node()` -> Node model
|
||||
$locationId = $this->server->node->location_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user