Unexpected error occorred while updating http rule

This commit is contained in:
quyc 2022-03-31 11:03:37 +08:00
parent d4de19a13c
commit 6b4364077e

View File

@ -1013,7 +1013,7 @@ func (g *GatewayAction) SyncTCPRules(tx *gorm.DB, components []*apimodel.Compone
tcpRules []*model.TCPRule
)
for _, component := range components {
if component.TCPRules == nil {
if len(component.TCPRules) == 0 {
continue
}
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)