Set workspace name correctly
All checks were successful
release-nightly / macos (push) Successful in 2m9s
release-nightly / web-demo (push) Successful in 5m46s

This commit is contained in:
2025-05-18 10:43:08 +09:30
parent 53a9ce3a45
commit 1e18b9e768

View File

@@ -149,6 +149,9 @@ export class FileTreeComponent implements OnInit, OnDestroy {
const file = files[i];
if (file.webkitRelativePath?.includes('/')) {
// Got a file in a folder, so put it into the appropriate folder in the tree
if (i === 0) {
this.selectedDirectory.set(file.webkitRelativePath.split('/')[0]);
}
const splitFilePath = file.webkitRelativePath.split('/').slice(1);
let currentChildren: FileOrFolder[] | undefined = mappedFiles;
for (let j = 0; j < splitFilePath.length - 1; j++) {