api: allow using paths/list when a path is being deleted (#1849)

This commit is contained in:
Alessandro Ros 2023-05-20 11:11:26 +02:00 committed by GitHub
parent 1889641c8c
commit 65f617aa7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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