Fix path in getTree

This commit is contained in:
Alexis Sellier
2021-06-10 13:42:33 +02:00
parent c1ae409928
commit 08c154c06b
+3
View File
@@ -71,6 +71,9 @@ export async function getTree(
path: string,
config: Config
): Promise<any | null> {
if (path === "/") {
path = "";
}
return api.get(`projects/${urn}/tree/${commit}/${path}`, config);
}