api: allow using paths/list when a path is being deleted (#1849)
This commit is contained in:
@@ -507,11 +507,9 @@ func (pm *pathManager) apiPathsList() (*apiPathsList, error) {
|
||||
|
||||
for _, pa := range res.paths {
|
||||
item, err := pa.apiPathsGet(pathAPIPathsGetReq{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if err == nil {
|
||||
res.data.Items = append(res.data.Items, item)
|
||||
}
|
||||
|
||||
res.data.Items = append(res.data.Items, item)
|
||||
}
|
||||
|
||||
sort.Slice(res.data.Items, func(i, j int) bool {
|
||||
|
||||
Reference in New Issue
Block a user