We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c2e258 commit eaa3675Copy full SHA for eaa3675
1 file changed
src/components/DatasetDetailPage/FileTree/FileTreeRow.tsx
@@ -123,12 +123,10 @@ const FileTreeRow: React.FC<Props> = ({
123
const externalUrl = node.link?.url;
124
125
const rowRef = React.useRef<HTMLDivElement | null>(null);
126
- // Highlight only if this row is exactly the subject folder (e.g., "sub-04")
127
- // const isSubjectFolder =
128
- // node.kind === "folder" && /^sub-[A-Za-z0-9]+$/i.test(node.name);
+ // Highlight only if this row is exactly the same as the focus highlightText
129
const isExactHit =
130
- !!highlightText &&
131
- node.name.trim().toLowerCase() === highlightText.trim().toLowerCase();
+ node.name.trim().toLowerCase() ===
+ (highlightText ?? "").trim().toLowerCase();
132
133
React.useEffect(() => {
134
if (isExactHit && rowRef.current) {
0 commit comments