Commit 2abe7739 authored by quyc's avatar quyc
Browse files

Unexpected error occorred while updating http rule

parent 6b436407
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment