diff --git a/frontend/src/component/feature/FeatureToggleList/BulkEnableDialog.tsx b/frontend/src/component/feature/FeatureToggleList/BulkEnableDialog.tsx index 25b3dd81da..f3342d086b 100644 --- a/frontend/src/component/feature/FeatureToggleList/BulkEnableDialog.tsx +++ b/frontend/src/component/feature/FeatureToggleList/BulkEnableDialog.tsx @@ -7,7 +7,6 @@ import type { FeatureSchema } from 'openapi'; import { formatUnknownError } from 'utils/formatUnknownError'; import useFeatureApi from 'hooks/api/actions/useFeatureApi/useFeatureApi'; -import useProject from 'hooks/api/getters/useProject/useProject'; import { useChangeRequestsEnabled } from 'hooks/useChangeRequestsEnabled'; import { useChangeRequestApi } from 'hooks/api/actions/useChangeRequestApi/useChangeRequestApi'; import { usePendingChangeRequests } from 'hooks/api/getters/usePendingChangeRequests/usePendingChangeRequests'; @@ -43,7 +42,6 @@ export const BulkEnableDialog = ({ const [selected, setSelected] = useState(environments[0]); const { bulkToggleFeaturesEnvironmentOn } = useFeatureApi(); const { addChange } = useChangeRequestApi(); - const { refetch: refetchProject } = useProject(projectId); const { setToastApiError, setToastData } = useToast(); const { isChangeRequestConfigured } = useChangeRequestsEnabled(projectId); const { refetch: refetchChangeRequests } = @@ -85,7 +83,6 @@ export const BulkEnableDialog = ({ data.map((feature) => feature.name), selected, ); - refetchProject(); setToastData({ text: 'Your feature toggles have been enabled', type: 'success',