Skip to content

Commit d51f08d

Browse files
sebastinezrudolfs
authored andcommitted
Expand browser tree when navigation through relative file links
Signed-off-by: Sebastian Martinez <[email protected]>
1 parent ecabe9b commit d51f08d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/projects/Tree/Folder.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
export let loadingPath: string | null = null;
1616
export let revision: string;
1717
18-
let expanded = currentPath.indexOf(prefix) === 0;
19-
let tree: Promise<Tree | undefined> = expanded
18+
$: expanded = currentPath.indexOf(prefix) === 0;
19+
$: tree = expanded
2020
? fetchTree(prefix).then(tree => {
2121
return tree;
2222
})

0 commit comments

Comments
 (0)