Ensure folder children are only displayed if they exist
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user