From 2747c9ddd9ac7012272c7fef21f2b9708da7fd55 Mon Sep 17 00:00:00 2001
From: laodaming <11058467+laudamine@user.noreply.gitee.com>
Date: Tue, 26 Sep 2023 14:38:34 +0800
Subject: [PATCH] fix

---
 .../internal/logic/getproducttemplatetagslogic.go                | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go
index 8e70d0d9..bec41fd9 100644
--- a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go
+++ b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go
@@ -135,6 +135,7 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
 		for k, v := range productTemplateTags {
 			if templateTagStr == *v.TemplateTag {
 				productTemplateTags[k], productTemplateTags[index] = productTemplateTags[index], productTemplateTags[k]
+				break
 			}
 		}
 	}