Skip to content

Commit

Permalink
fix: project features table initial state (#4843)
Browse files Browse the repository at this point in the history
When loading don't keep initial state, but recalculate if after proper
data is present. (issue 1-1432)
  • Loading branch information
Tymek authored Sep 27, 2023
1 parent 6f4f6f0 commit f82ae35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const FeatureToggleSwitch: VFC<IFeatureToggleSwitchProps> = ({
permission={UPDATE_FEATURE_ENVIRONMENT}
inputProps={{ 'aria-label': environmentName }}
onClick={onClick}
data-testId={'permission-switch'}
data-testid={'permission-switch'}
/>
</StyledBoxContainer>
<EnableEnvironmentDialog
Expand Down
1 change: 1 addition & 0 deletions frontend/src/component/project/Project/ProjectOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const ProjectOverview = () => {
<ProjectStats stats={project.stats} />
<StyledProjectToggles>
<ProjectFeatureToggles
key={loading ? 'loading' : 'ready'}
features={features}
environments={environments}
loading={loading}
Expand Down

0 comments on commit f82ae35

Please sign in to comment.