Fix bad reference
This commit is contained in:
@@ -47,7 +47,7 @@ export function useAutocomplete({
|
|||||||
async queryFn() {
|
async queryFn() {
|
||||||
if (type === 'profile') {
|
if (type === 'profile') {
|
||||||
// TODO return recents
|
// TODO return recents
|
||||||
if (!query) return []
|
if (!q) return []
|
||||||
|
|
||||||
// Going from "foo" to "foo." should not clear matches.
|
// Going from "foo" to "foo." should not clear matches.
|
||||||
q = q.toLowerCase().trim().replace(/\.$/, '')
|
q = q.toLowerCase().trim().replace(/\.$/, '')
|
||||||
|
|||||||
Reference in New Issue
Block a user