Skip to content

Commit c69e8cf

Browse files
committed
fix collection search bug
1 parent aadcdcf commit c69e8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/useSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const useSearch = (query: string) => {
1919
fetchPolicy: 'no-cache',
2020
variables: {
2121
where: {
22-
or: [{token: query}, {token: query ? query.toLowerCase() : ""}]
22+
token_in: [query, query ? query.toLowerCase() : ""]
2323
},
2424
first: 1,
2525
},

0 commit comments

Comments
 (0)