fix: Fix the issue where an error occurs on the runtime environment page when Docker is not installed. (#9615)

This commit is contained in:
CityFun 2025-07-23 15:39:48 +08:00 committed by GitHub
parent a83a6690ff
commit 033f08a6d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}