Skip to content

Commit e127d2b

Browse files
Handle empty search query with nil filter type
Co-authored-by: Thomas Krampl <[email protected]>
1 parent b00d09b commit e127d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/search/queries.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func Search(ctx context.Context, page *pagination.Pagination, filter SearchFilter) (*SearchNodeConnection, error) {
1414
q := strings.TrimSpace(filter.Query)
15-
if q == "" {
15+
if q == "" && filter.Type == nil {
1616
return pagination.EmptyConnection[SearchNode](), nil
1717
}
1818

0 commit comments

Comments
 (0)