This commit is contained in:
Kerwin Bryant
2025-01-13 05:41:46 +00:00
parent 67a749f52c
commit c0e2fd2e7d
2 changed files with 7 additions and 12 deletions
@@ -32,7 +32,7 @@ async function loadChildren(item, recursive?: boolean) {
const apiBaseUrl = fileTree.getAttribute('data-api-base-url');
const refType = fileTree.getAttribute('data-current-ref-type');
const refName = fileTree.getAttribute('data-current-ref-short-name');
const response = await GET(`${apiBaseUrl}/tree/${item ? item.path : ''}?ref=${refType}/${refName}&recursive=${recursive ?? false}`);
const response = await GET(`${apiBaseUrl}/tree/${item ? item.path : ''}?ref_type=${refType}&ref_name=${refName}&recursive=${recursive ?? false}`);
const json = await response.json();
if (json instanceof Array) {
return json.map((i) => ({