From d7a3d282495ec574029192e29270534f2d0b2c64 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:43:28 +0200 Subject: [PATCH] feat: open environment accordion if there is only one environment in a project --- .../FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx index 5b6e340dffef..700a55d2a589 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironment.tsx @@ -131,6 +131,7 @@ const FeatureOverviewEnvironment = ({ const featureEnvironment = feature?.environments.find( (featureEnvironment) => featureEnvironment.name === env.name, ); + const defaultExpanded = feature?.environments.length === 1; return ( }