mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(web): folders store (#14305)
* refactor(web): folders store * use typescript private
This commit is contained in:
parent
454836b551
commit
c33b918d74
7 changed files with 52 additions and 81 deletions
|
|
@ -7,8 +7,6 @@ export const normalizeTreePath = (path: string) => path.replace(/^\//, '').repla
|
|||
export function buildTree(paths: string[]) {
|
||||
const root: RecursiveObject = {};
|
||||
|
||||
paths.sort();
|
||||
|
||||
for (const path of paths) {
|
||||
const parts = path.split('/');
|
||||
let current = root;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue