Skip to content

Commit b0fb9ae

Browse files
committed
Fix GraphSelector to properly handle empty graph state
- Hide select graph button when no graphs are available - Check both currentGraph and graphHierarchy.length to prevent UI inconsistency - Ensures "No graphs available" message shows instead of misleading selector
1 parent e635109 commit b0fb9ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/components/GraphSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function GraphSelector() {
9696
}
9797
};
9898

99-
if (!currentGraph) {
99+
if (!currentGraph || graphHierarchy.length === 0) {
100100
return (
101101
<div className="p-3">
102102
<div className="text-center text-gray-400">

0 commit comments

Comments
 (0)