Skip to content

Commit 0a0d6da

Browse files
committed
refactor: generics
1 parent 9ae02bb commit 0a0d6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Code/FileTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getFileRoute(nodePath: string): RouteLocationRaw {
3737
const { toggleDir, isExpanded, autoExpandAncestors } = useFileTreeState(props.baseUrl)
3838
3939
const scrollIntoView = () => {
40-
const el = treeRoot.value?.querySelector('[aria-current="true"]') as HTMLElement
40+
const el = treeRoot.value?.querySelector<HTMLElement>('[aria-current="true"]')
4141
el?.scrollIntoView({ block: 'center', behavior: 'smooth' })
4242
}
4343

0 commit comments

Comments
 (0)