diff --git a/gitnexus-web/src/services/server-connection.ts b/gitnexus-web/src/services/server-connection.ts index 7687a1fef..8c262000b 100644 --- a/gitnexus-web/src/services/server-connection.ts +++ b/gitnexus-web/src/services/server-connection.ts @@ -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(