Skip to content

Commit fc2e6f9

Browse files
committed
fix: check org count
1 parent c92f2a4 commit fc2e6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/TemplatesPage/MultiOrgTemplatePage/TemplatesPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = ({
9898
{Boolean(!templatesByOrg) && <Loader />}
9999

100100
<Stack direction="row" spacing={4} alignItems="flex-start">
101-
{templatesByOrg && orgs && orgs.length > 2 && (
101+
{templatesByOrg && Object.keys(templatesByOrg).length > 2 && (
102102
<Stack
103103
css={{ width: 208, flexShrink: 0, position: "sticky", top: 48 }}
104104
>

0 commit comments

Comments
 (0)