resources/page: Let GroupByParam return nil instead of error

Closes #12578
This commit is contained in:
Joe Mooring
2024-06-08 06:45:58 -07:00
committed by Bjørn Erik Pedersen
parent 9c4e14eb4f
commit cba2de6ec9
3 changed files with 13 additions and 19 deletions

View File

@@ -205,7 +205,7 @@ func (p Pages) GroupByParam(key string, order ...string) (PagesGroup, error) {
}
}
if !tmp.IsValid() {
return nil, errors.New("there is no such param")
return nil, nil
}
for _, e := range p {