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:
parent
6f4f6f049b
commit
f82ae354eb
@ -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
|
||||
|
@ -60,6 +60,7 @@ const ProjectOverview = () => {
|
||||
<ProjectStats stats={project.stats} />
|
||||
<StyledProjectToggles>
|
||||
<ProjectFeatureToggles
|
||||
key={loading ? 'loading' : 'ready'}
|
||||
features={features}
|
||||
environments={environments}
|
||||
loading={loading}
|
||||
|
Loading…
Reference in New Issue
Block a user