diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx index 1855733c69..872bfd538c 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx @@ -90,7 +90,7 @@ export const FeatureStrategyEdit = () => { useEffect(() => { // Fill in the selected segments once they've been fetched. savedStrategySegments && setSegments(savedStrategySegments); - }, [savedStrategySegments]); + }, [JSON.stringify(savedStrategySegments)]); const onStrategyEdit = async (payload: IFeatureStrategyPayload) => { await updateStrategyOnFeature( diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx index 5065abf61d..5b70225d60 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelEnvironmentSwitches/FeatureOverviewSidePanelEnvironmentSwitch/FeatureOverviewSidePanelEnvironmentHider.tsx @@ -4,7 +4,7 @@ import { Visibility, VisibilityOff } from '@mui/icons-material'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; const StyledVisibilityToggle = styled(IconButton, { - shouldForwardProp: prop => prop !== 'highlighted', + shouldForwardProp: prop => prop !== 'visibilityOff', })<{ visibilityOff: boolean }>(({ theme, visibilityOff }) => ({ marginLeft: 'auto', marginRight: theme.spacing(-1),