Ensure folder children are only displayed if they exist
This commit is contained in:
@@ -1340,7 +1340,7 @@ export default function App() {
|
|||||||
×
|
×
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{expanded ? (
|
{expanded && childEntries.length > 0 ? (
|
||||||
<div className="folder-children">
|
<div className="folder-children">
|
||||||
{childEntries.map((entry) =>
|
{childEntries.map((entry) =>
|
||||||
entry.kind === "folder"
|
entry.kind === "folder"
|
||||||
|
|||||||
Reference in New Issue
Block a user