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

fix: use correct flag name (#5026)

Fixes a bug with using the wrong feature name

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-10-13 17:02:48 +03:00 committed by GitHub
parent 9c047e0756
commit ff97dfd733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,8 @@ import {
DELETE_FEATURE,
UPDATE_FEATURE,
} from 'component/providers/AccessProvider/permissions';
import ToastRenderer from '../../common/ToastRenderer/ToastRenderer';
import { testServerRoute, testServerSetup } from '../../../utils/testServer';
import ToastRenderer from 'component/common/ToastRenderer/ToastRenderer';
import { testServerRoute, testServerSetup } from 'utils/testServer';
const mockedFeatures = [
{
@ -54,7 +54,7 @@ const Component = () => {
const server = testServerSetup();
const setupApi = (disableAllEnvsOnRevive = false) => {
const setupApi = (disableEnvsOnRevive = false) => {
testServerRoute(
server,
'/api/admin/projects/default/revive',
@ -66,7 +66,7 @@ const setupApi = (disableAllEnvsOnRevive = false) => {
testServerRoute(server, '/api/admin/ui-config', {
environment: 'Open Source',
flags: {
disableAllEnvsOnRevive,
disableEnvsOnRevive,
},
});
};

View File

@ -28,7 +28,7 @@ export const ArchivedFeatureReviveConfirm = ({
}: IArchivedFeatureReviveConfirmProps) => {
const { setToastData, setToastApiError } = useToast();
const { reviveFeatures } = useProjectApi();
const disableAllEnvsOnRevive = useUiFlag('disableAllEnvsOnRevive');
const disableAllEnvsOnRevive = useUiFlag('disableEnvsOnRevive');
const onReviveFeatureToggle = async () => {
try {

View File

@ -70,7 +70,7 @@ export type UiFlags = {
datadogJsonTemplate?: boolean;
dependentFeatures?: boolean;
internalMessageBanners?: boolean;
disableAllEnvsOnRevive?: boolean;
disableEnvsOnRevive?: boolean;
};
export interface IVersionInfo {