Skip to content

Commit

Permalink
api: allow using paths/list when a path is being deleted (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored May 20, 2023
1 parent 1889641 commit 65f617a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/core/path_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65f617a

Please sign in to comment.