mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
19bb1694de
commit
690d169bdf
|
@ -87,6 +87,7 @@ type viewFilter struct {
|
||||||
|
|
||||||
// NewViewFilter creates the new ViewFilter
|
// NewViewFilter creates the new ViewFilter
|
||||||
func NewViewFilter(params Params) ViewFilter {
|
func NewViewFilter(params Params) ViewFilter {
|
||||||
|
if params != nil {
|
||||||
filter := new(viewFilter)
|
filter := new(viewFilter)
|
||||||
filter.init()
|
filter.init()
|
||||||
for tag, value := range params {
|
for tag, value := range params {
|
||||||
|
@ -95,6 +96,7 @@ func NewViewFilter(params Params) ViewFilter {
|
||||||
if len(filter.properties) > 0 {
|
if len(filter.properties) > 0 {
|
||||||
return filter
|
return filter
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue