mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 11:47:36 +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
|
httpRuleRewrites []*model.HTTPRuleRewrite
|
||||||
)
|
)
|
||||||
for _, component := range components {
|
for _, component := range components {
|
||||||
if component.HTTPRules == nil {
|
if len(component.HTTPRules) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)
|
componentIDs = append(componentIDs, component.ComponentBase.ComponentID)
|
||||||
|
Loading…
Reference in New Issue
Block a user