mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Run prettier across app and api
This commit is contained in:
@@ -62,9 +62,7 @@ export default function useFolders() {
|
||||
}
|
||||
|
||||
export function nestFolders(rawFolders: FolderRaw[]) {
|
||||
return rawFolders
|
||||
.map((rawFolder) => nestChildren(rawFolder, rawFolders))
|
||||
.filter((folder) => folder.parent === null);
|
||||
return rawFolders.map((rawFolder) => nestChildren(rawFolder, rawFolders)).filter((folder) => folder.parent === null);
|
||||
}
|
||||
|
||||
export function nestChildren(rawFolder: FolderRaw, rawFolders: FolderRaw[]) {
|
||||
|
||||
Reference in New Issue
Block a user