forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
19bb1694de
commit
690d169bdf
|
@ -87,13 +87,15 @@ type viewFilter struct {
|
||||||
|
|
||||||
// NewViewFilter creates the new ViewFilter
|
// NewViewFilter creates the new ViewFilter
|
||||||
func NewViewFilter(params Params) ViewFilter {
|
func NewViewFilter(params Params) ViewFilter {
|
||||||
filter := new(viewFilter)
|
if params != nil {
|
||||||
filter.init()
|
filter := new(viewFilter)
|
||||||
for tag, value := range params {
|
filter.init()
|
||||||
filter.Set(tag, value)
|
for tag, value := range params {
|
||||||
}
|
filter.Set(tag, value)
|
||||||
if len(filter.properties) > 0 {
|
}
|
||||||
return filter
|
if len(filter.properties) > 0 {
|
||||||
|
return filter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue