mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-30 02:36:18 +08:00
fix: Fix the issue where an error occurs on the runtime environment page when Docker is not installed. (#9615)
This commit is contained in:
parent
a83a6690ff
commit
033f08a6d2
1 changed files with 3 additions and 0 deletions
|
|
@ -211,6 +211,9 @@ func (r *RuntimeService) Page(req request.RuntimeSearch) (int64, []response.Runt
|
|||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
if len(runtimes) == 0 {
|
||||
return 0, res, nil
|
||||
}
|
||||
if err = SyncRuntimesStatus(runtimes); err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue