mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-01 11:45:24 +02:00
fix
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user