Browse Source

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

pull/1854/head v0.23.2
Alessandro Ros 3 years ago committed by GitHub
parent
commit
65f617aa7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      internal/core/path_manager.go

6
internal/core/path_manager.go

@ -507,11 +507,9 @@ func (pm *pathManager) apiPathsList() (*apiPathsList, error) { @@ -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 {

Loading…
Cancel
Save