mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
Merge pull request #1157 from quyuancheng/fixbug-560
Unexpected error occorred while updating http rule
This commit is contained in:
commit
57fa0beffd
@ -940,7 +940,7 @@ func (g *GatewayAction) SyncHTTPRules(tx *gorm.DB, components []*apimodel.Compon
|
||||
httpRuleRewrites []*model.HTTPRuleRewrite
|
||||
)
|
||||
for _, component := range components {
|
||||
if component.HTTPRules == nil {
|
||||
if len(component.HTTPRules) == 0 {
|
||||
continue
|
||||
}
|
||||
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)
|
||||
|
Loading…
Reference in New Issue
Block a user