CRITICAL FIX: Remove recursion from listDirectoryForTree function. The backend was recursively fetching ALL subdirectories and returning them as a flat list, which completely broke the lazy-loading model. Changes: - Remove recursive call in listDirectoryForTree - Backend now returns ONLY immediate children - Frontend handles lazy loading by requesting children on expand - This matches the intended architecture where frontend controls tree This fixes the issue where directory contents were duplicated and the tree structure was corrupted when expanding/collapsing. |
||
|---|---|---|
| .. | ||
| config | ||
| lib | ||
| services | ||
| tools | ||
| gadget-drone.ts | ||