From 65f617aa7c326f491c4f4f4a4d52beea3bd6abc7 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sat, 20 May 2023 11:11:26 +0200 Subject: [PATCH] api: allow using paths/list when a path is being deleted (#1849) --- internal/core/path_manager.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/core/path_manager.go b/internal/core/path_manager.go index 6f90f25fb66..34e9b350a38 100644 --- a/internal/core/path_manager.go +++ b/internal/core/path_manager.go @@ -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 {