mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
Minor fix in model helpers
This commit is contained in:
committed by
Dan Christian Bogos
parent
c6aeb16a7e
commit
c23e534d70
@@ -1817,7 +1817,7 @@ func (tps TpFilterS) AsTPFilter() (result []*utils.TPFilterProfile) {
|
||||
}
|
||||
|
||||
func APItoModelTPFilter(th *utils.TPFilterProfile) (mdls TpFilterS) {
|
||||
if len(th.Filters) == 0 {
|
||||
if th == nil || len(th.Filters) == 0 {
|
||||
return
|
||||
}
|
||||
for _, fltr := range th.Filters {
|
||||
|
||||
Reference in New Issue
Block a user