From 2c6f7b2e8b5915f47920d1e569a085891a3ce372 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Mon, 29 Jun 2026 13:13:43 +0200 Subject: [PATCH] fix: Bibliothek section always visible in left sidebar - LeftSidebar was hiding entire Bibliothek section when blocks array was empty - Removed blocks.length > 0 conditional wrapper - Added blocks || [] fallback to prevent crash - Library tree now visible even with no blocks --- frontend/src/components/LeftSidebar.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/LeftSidebar.tsx b/frontend/src/components/LeftSidebar.tsx index 2a1428d..2acc0a0 100644 --- a/frontend/src/components/LeftSidebar.tsx +++ b/frontend/src/components/LeftSidebar.tsx @@ -121,11 +121,10 @@ const LeftSidebar: React.FC = ({ activeTool, onToolChange, sel )} - {blocks && blocks.length > 0 && ( -
-
Bibliothek
+
+
Bibliothek
{})} onSearch={onBlockSearch ?? (() => {})} @@ -136,8 +135,7 @@ const LeftSidebar: React.FC = ({ activeTool, onToolChange, sel onSvgImport={onSvgImport} onSaveGroupAsBlock={onSaveGroupAsBlock} /> -
- )} +
{onToggleCollapse && (