simplify foldernav mounting code

This commit is contained in:
Quinten Kock 2025-08-13 18:12:08 +02:00
parent 0d874a7cf1
commit 9238099746
1 changed files with 2 additions and 5 deletions

View File

@ -87,8 +87,5 @@ const FsItemView = (tree: FolderTree): HTMLElement | string => {
// // ); // // );
}; };
// Mount the folder tree view reactively to the nav // Mount the folder tree view to the nav
const nav = document.querySelector("aside nav"); van.add(document.querySelector("aside nav"), FolderTreeView);
if (nav) {
van.add(nav, () => FolderTreeView());
}