Update to Typescript 7 (#39987)
This commit is contained in:
1 parent
6844f4009a
commit
ecf9d23752
18 files changed
+397
-167
No files matched your search
@@ -89,10 +89,10 @@ export function useSearchTags({
|
||||
}, []);
|
||||
|
||||
// Add dedicated item for adding the current query
|
||||
const tags = useMemo(() => {
|
||||
const tags = useMemo((): TagSearchResult[] => {
|
||||
const trimmedQuery = query ? trimHashFromStart(query.trim()) : '';
|
||||
if (!trimmedQuery) {
|
||||
return fetchedTags as TagSearchResult[];
|
||||
return fetchedTags;
|
||||
}
|
||||
|
||||
const results: TagSearchResult[] = [...fetchedTags]; // Make array mutable
|
||||
|
||||
Reference in new issue
Block a user