diff --git a/Frontend/src/components/Sidebar.jsx b/Frontend/src/components/Sidebar.jsx index 1f26a69..82b03b3 100644 --- a/Frontend/src/components/Sidebar.jsx +++ b/Frontend/src/components/Sidebar.jsx @@ -31,10 +31,10 @@ const Sidebar = ({ const renderExplorer = () => { const renderFileTree = (structure, path = "") => { if (!structure) return null; - + return Object.entries(structure).map(([name, item]) => { const currentPath = path ? `${path}/${name}` : name; - + if (item.type === "folder") { const isExpanded = expandedFolders[currentPath]; return ( @@ -75,21 +75,6 @@ const Sidebar = ({ )} - - - {name} {isExpanded && ( @@ -137,7 +122,7 @@ const Sidebar = ({ } }); }; - + return (