Ensure folder children are only displayed if they exist

This commit is contained in:
2026-02-01 02:07:35 +01:00
parent 30d03e20c1
commit c66fee4541

View File

@@ -1340,7 +1340,7 @@ export default function App() {
×
</button>
</div>
{expanded ? (
{expanded && childEntries.length > 0 ? (
<div className="folder-children">
{childEntries.map((entry) =>
entry.kind === "folder"