diff --git a/pkg/models/task_collection_filter.go b/pkg/models/task_collection_filter.go index 7e7da7836..f0019fd6e 100644 --- a/pkg/models/task_collection_filter.go +++ b/pkg/models/task_collection_filter.go @@ -92,6 +92,10 @@ func parseTimeFromUserInput(timeString string) (value time.Time, err error) { func getTaskFiltersByCollections(c *TaskCollection) (filters []*taskFilter, err error) { + if c.Filter == "" { + return + } + if len(c.FilterByArr) > 0 { c.FilterBy = append(c.FilterBy, c.FilterByArr...) }