forked from mbk-lab/rui_orig
2
0
Fork 0

Bug fixing

This commit is contained in:
Alexei Anoshenko 2022-05-05 17:18:08 +03:00
parent 19bb1694de
commit 690d169bdf
1 changed files with 9 additions and 7 deletions

View File

@ -87,6 +87,7 @@ type viewFilter struct {
// NewViewFilter creates the new ViewFilter
func NewViewFilter(params Params) ViewFilter {
if params != nil {
filter := new(viewFilter)
filter.init()
for tag, value := range params {
@ -95,6 +96,7 @@ func NewViewFilter(params Params) ViewFilter {
if len(filter.properties) > 0 {
return filter
}
}
return nil
}