diff --git a/apps/client/src/features/space/components/sidebar/space-sidebar.tsx b/apps/client/src/features/space/components/sidebar/space-sidebar.tsx index 9ee98a50..b5b9a9c8 100644 --- a/apps/client/src/features/space/components/sidebar/space-sidebar.tsx +++ b/apps/client/src/features/space/components/sidebar/space-sidebar.tsx @@ -161,15 +161,11 @@ function SpaceMenu({ treeRef, }: SpaceMenuProps) { const { t } = useTranslation(); - const [isExpanding, setIsExpanding] = React.useState(false); - - const handleExpandAll = async () => { - setIsExpanding(true); - try { - await treeRef.current?.expandAll(); - } finally { - setIsExpanding(false); - } + const handleExpandAll = () => { + // Fire-and-forget: expandAll already surfaces its own error notification. + // The menu closes on click (consistent with Collapse all), so there is no + // in-menu loading state to track here. + treeRef.current?.expandAll(); }; const handleCollapseAll = () => { @@ -226,8 +222,6 @@ function SpaceMenu({