1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

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)
This commit is contained in:
Tymoteusz Czech 2023-09-27 10:37:25 +02:00 committed by GitHub
parent 6f4f6f049b
commit f82ae354eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -60,6 +60,7 @@ const ProjectOverview = () => {
<ProjectStats stats={project.stats} />
<StyledProjectToggles>
<ProjectFeatureToggles
key={loading ? 'loading' : 'ready'}
features={features}
environments={environments}
loading={loading}