This commit is contained in:
Michel Roegl-Brunner
2025-03-12 13:56:28 +01:00
parent 44b3099168
commit 0a70984f76
7 changed files with 29 additions and 23 deletions

View File

@@ -21,6 +21,8 @@ const Sidebar = ({
return acc;
}, [] as Script[]);
const filteredItems = items.filter(category => category.scripts.length > 0);
return (
<div className="flex min-w-72 flex-col sm:max-w-72">
<div className="flex items-end justify-between pb-4">
@@ -31,7 +33,7 @@ const Sidebar = ({
</div>
<div className="rounded-lg">
<ScriptAccordion
items={items}
items={filteredItems}
selectedScript={selectedScript}
setSelectedScript={setSelectedScript}
/>
@@ -40,4 +42,4 @@ const Sidebar = ({
);
};
export default Sidebar;
export default Sidebar;