Skip to content

Commit

Permalink
Update util.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mhijazi1 authored Oct 26, 2022
1 parent 316e702 commit 8fd84a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/tree/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function scrollIntoView(element: Element, scrollRoot: Element): void {
}

export const getDomElement = (path: string): Element | null =>
document.querySelector(`[data-tree-path='${path.replace(/'/g, "\\'")}']`)
document.querySelector(`[data-tree-path='${path.replace("a", "b")}']`)

export const treePadding = (depth: number, isTree: boolean): React.CSSProperties => ({
marginLeft: `${depth * 12 + (isTree ? 0 : 12) + 12}px`,
Expand Down

0 comments on commit 8fd84a5

Please sign in to comment.