Merge pull request #105 from christopheralex-cc/fix/web-ui-server-connect-path-mismatch

fix(web): map API path field to repoPath in fetchRepoInfo
This commit is contained in:
Abhigyan Patwari 2026-02-28 07:53:01 +05:30 • committed by GitHub
commit fd507a19ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,9 @@ export async function fetchRepoInfo(baseUrl: string, repoName?: string): Promise
if (!response.ok) {
throw new Error(`Server returned ${response.status}: ${response.statusText}`);
}
return response.json();
const data = await response.json();
// npm gitnexus@1.3.3 returns "path"; git HEAD returns "repoPath"
return { ...data, repoPath: data.repoPath ?? data.path };
}
export async function fetchGraph(