fix(filter): don't crash on empty filter

This commit is contained in:
kolaente 2023-11-21 18:23:17 +01:00
parent 54a9ea84d5
commit d9cb2d1755
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -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...)
}