diff --git a/ui/admin/app/components/agent/shared/EnvironmentVariableSection.tsx b/ui/admin/app/components/agent/shared/EnvironmentVariableSection.tsx index 6f6ea6882..ad21ec60d 100644 --- a/ui/admin/app/components/agent/shared/EnvironmentVariableSection.tsx +++ b/ui/admin/app/components/agent/shared/EnvironmentVariableSection.tsx @@ -62,14 +62,16 @@ export function EnvironmentVariableSection({ return (
- - item.name} - items={items} - renderItem={renderItem} - selected={items.map((item) => item.name)} - /> - + {!!items.length && ( + + item.name} + items={items} + renderItem={renderItem} + selected={items.map((item) => item.name)} + /> + + )}