From 15e00d7a735494308e9c22eda7002ab0d1257c51 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 29 Aug 2024 15:49:46 +0200 Subject: [PATCH] fix: update ci (#557) * fix: update ci * fix: update ci --- .github/workflows/release-please.yml | 1 + ui/src/components/Search.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 5d669c5d..fc6f57e5 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,6 +11,7 @@ name: release-please jobs: test-node: uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main + secrets: inherit release-please: runs-on: ubuntu-latest diff --git a/ui/src/components/Search.tsx b/ui/src/components/Search.tsx index a79e1f0f..220b8c33 100644 --- a/ui/src/components/Search.tsx +++ b/ui/src/components/Search.tsx @@ -42,7 +42,7 @@ export const Search = ({ const uf = useMemo(() => { const opts = { intraMode: 1, - intraChars: "[a-z\\d'_]" + intraChars: "[a-z\\d'_]", }; return new uFuzzy(opts); }, []); @@ -50,7 +50,7 @@ export const Search = ({ const performSearch = useCallback( (search: string) => { const searchWords = search.trim().split(/\s+/); - + let results = []; for (let idx = 0; idx < searchPaths.length; idx++) { const path = searchPaths[idx]; @@ -58,12 +58,12 @@ export const Search = ({ const idxs = uf.filter([path], word); return idxs && idxs.length > 0; }); - + if (isMatch) { results.push(addresses[idx]); } } - + setResults(results.slice(0, SEARCH_LIMIT)); }, [searchPaths, addresses, uf], @@ -168,7 +168,7 @@ export const Search = ({ (refs.current[index] = el)} + ref={(el) => (refs.current[index] = el) as any} tabIndex={index === activeIndex ? 0 : -1} /> ))}