diff --git a/src/components/DetailList.svelte b/src/components/DetailList.svelte index dd51fdc..97fd137 100644 --- a/src/components/DetailList.svelte +++ b/src/components/DetailList.svelte @@ -6,9 +6,11 @@ export let workspaces: string[] = []; const mergeWorkspacePath = (workspacePath: string) => { - return `${repoBlobPath}${ - workspacePath === '.' ? '' : workspacePath + '/' - }${CARGO_TOML_FILE}`; + let path = workspacePath === '.' ? '' : workspacePath; + if (!path.endsWith('/')) { + path += '/'; + } + return `${repoBlobPath}${path}${CARGO_TOML_FILE}`; }; $: total = workspaces.length; @@ -24,7 +26,7 @@