fix: redirect to server index instead of show on error in Advanced and DockerCleanup components
This commit is contained in:
parent
e0aeb35316
commit
a771993d97
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ public function mount(string $server_uuid)
|
|||
$this->parameters = get_route_parameters();
|
||||
$this->syncData();
|
||||
} catch (\Throwable) {
|
||||
return redirect()->route('server.show');
|
||||
return redirect()->route('server.index');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public function mount(string $server_uuid)
|
|||
$this->parameters = get_route_parameters();
|
||||
$this->syncData();
|
||||
} catch (\Throwable) {
|
||||
return redirect()->route('server.show');
|
||||
return redirect()->route('server.index');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue