Skip to content

Commit

Permalink
fix(console): remove "no resources" message when resource tree is col…
Browse files Browse the repository at this point in the history
…lapsed (#5242)
  • Loading branch information
skyrpex authored Dec 18, 2023
1 parent 374274d commit 74e22cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wing-console/console/ui/src/ui/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const Explorer = memo((props: ExplorerProps) => {
)}
>
<div className="flex flex-col">
{expandedItems.length === 0 && <NoResources />}
{(!items || items.length === 0) && <NoResources />}
<TreeView
expandedItems={expandedItems}
onExpandedItemsChange={onExpandedItemsChange}
Expand Down

0 comments on commit 74e22cc

Please sign in to comment.