Skip to content

Commit 55af56b

Browse files
committed
fix bug in the computation of path parts
1 parent e7b71dd commit 55af56b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/sources/hyperparamSource.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ function canParse(sourceId: string): boolean {
1616

1717
function getSourceParts(sourceId: string): SourcePart[] {
1818
const parts = sourceId.split('/')
19+
if (parts[parts.length - 1] === '') {
20+
parts.pop()
21+
}
1922
return [
2023
{ 'text': '/', 'sourceId': '' },
2124
...parts.map((part, depth) => {

0 commit comments

Comments
 (0)