From b6f593c8d0abd99a1f7dae29dfaf09e4414af312 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Wed, 16 Apr 2025 15:20:57 +0800 Subject: [PATCH] Fix: Dragging to modify the order of service categories will fail when there are subcategories in the service category. --- module/catalogue/iml.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/catalogue/iml.go b/module/catalogue/iml.go index bffa1294..b36f6958 100644 --- a/module/catalogue/iml.go +++ b/module/catalogue/iml.go @@ -515,7 +515,10 @@ func (i *imlCatalogueModule) recurseUpdateSort(ctx context.Context, parent strin if len(item.Children) < 1 { continue } - return i.recurseUpdateSort(ctx, item.Id, item.Children) + err = i.recurseUpdateSort(ctx, item.Id, item.Children) + if err != nil { + return err + } } return nil }