Expand browser tree when navigation through relative file links

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-06-26 13:48:49 +02:00
committed by Rūdolfs Ošiņš
parent ecabe9b7a8
commit d51f08d6af
+2 -2
View File
@@ -15,8 +15,8 @@
export let loadingPath: string | null = null;
export let revision: string;
let expanded = currentPath.indexOf(prefix) === 0;
let tree: Promise<Tree | undefined> = expanded
$: expanded = currentPath.indexOf(prefix) === 0;
$: tree = expanded
? fetchTree(prefix).then(tree => {
return tree;
})