From f82ae354ebe6d3b0a3ddf15a051d6c8ed995c10e Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:37:25 +0200 Subject: [PATCH] fix: project features table initial state (#4843) When loading don't keep initial state, but recalculate if after proper data is present. (issue 1-1432) --- .../FeatureToggleSwitch/FeatureToggleSwitch.tsx | 2 +- frontend/src/component/project/Project/ProjectOverview.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/project/Project/ProjectFeatureToggles/FeatureToggleSwitch/FeatureToggleSwitch.tsx b/frontend/src/component/project/Project/ProjectFeatureToggles/FeatureToggleSwitch/FeatureToggleSwitch.tsx index 005c02d7eb..3d32453295 100644 --- a/frontend/src/component/project/Project/ProjectFeatureToggles/FeatureToggleSwitch/FeatureToggleSwitch.tsx +++ b/frontend/src/component/project/Project/ProjectFeatureToggles/FeatureToggleSwitch/FeatureToggleSwitch.tsx @@ -220,7 +220,7 @@ export const FeatureToggleSwitch: VFC = ({ permission={UPDATE_FEATURE_ENVIRONMENT} inputProps={{ 'aria-label': environmentName }} onClick={onClick} - data-testId={'permission-switch'} + data-testid={'permission-switch'} /> {