mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
chore(react/collections): highlighting in grid title
This commit is contained in:
@@ -558,7 +558,7 @@ export function useImperativeSearchHighlighlighting(highlightedTokens: string[]
|
||||
return new RegExp(regex, "gi")
|
||||
}, [ highlightedTokens ]);
|
||||
|
||||
return (el: HTMLElement) => {
|
||||
return (el: HTMLElement | null | undefined) => {
|
||||
if (!el || !highlightRegex) return;
|
||||
|
||||
if (!mark.current) {
|
||||
|
||||
Reference in New Issue
Block a user