Skip to content

Commit

Permalink
refactor: remove quering old features endpoint from BulkEnableDialog (#…
Browse files Browse the repository at this point in the history
…6698)

This was meant to repull the features, but we are using search, so it
was doing nothing.
I tested and features are still updated after removal.
  • Loading branch information
sjaanus committed Mar 26, 2024
1 parent 06a70ca commit 20c41ca
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -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';
Expand Down Expand Up @@ -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 } =
Expand Down Expand Up @@ -85,7 +83,6 @@ export const BulkEnableDialog = ({
data.map((feature) => feature.name),
selected,
);
refetchProject();
setToastData({
text: 'Your feature toggles have been enabled',
type: 'success',
Expand Down

0 comments on commit 20c41ca

Please sign in to comment.