mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
Merge pull request #1156 from quyuancheng/fixbug-560
Unexpected error occorred while updating http rule
This commit is contained in:
commit
cff8cd8b39
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user