mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
Unexpected error occorred while updating http rule
This commit is contained in:
parent
d4de19a13c
commit
6b4364077e
@ -1013,7 +1013,7 @@ func (g *GatewayAction) SyncTCPRules(tx *gorm.DB, components []*apimodel.Compone
|
|||||||
tcpRules []*model.TCPRule
|
tcpRules []*model.TCPRule
|
||||||
)
|
)
|
||||||
for _, component := range components {
|
for _, component := range components {
|
||||||
if component.TCPRules == nil {
|
if len(component.TCPRules) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)
|
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)
|
||||||
|
Loading…
Reference in New Issue
Block a user