Update node record after updating (#929)

* refresh node model after updating

* update record so form is correctly filled
This commit is contained in:
Boy132 2025-01-19 01:28:52 +01:00 committed by GitHub
parent 3411e5e65c
commit 9e8b9cd599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -603,9 +603,12 @@ class EditNode extends EditRecord
try {
unset($data['unlimited_mem'], $data['unlimited_disk'], $data['unlimited_cpu']);
return $this->nodeUpdateService->handle($record, $data);
$this->record = $this->nodeUpdateService->handle($record, $data);
return $this->record;
} catch (Exception $exception) {
$this->errored = true;
Notification::make()
->title('Error connecting to the node')
->body('The configuration could not be automatically updated on Wings, you will need to manually update the configuration file.')