mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: environment id missing bug (#4397)
This commit is contained in:
parent
8e3eaf158e
commit
d001b864f2
@ -257,6 +257,8 @@ export const FeatureStrategyForm = ({
|
|||||||
<StrategyVariants
|
<StrategyVariants
|
||||||
strategy={strategy}
|
strategy={strategy}
|
||||||
setStrategy={setStrategy}
|
setStrategy={setStrategy}
|
||||||
|
environment={environmentId}
|
||||||
|
projectId={projectId}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -32,7 +32,12 @@ test('should render variants', async () => {
|
|||||||
currentStrategy = strategy;
|
currentStrategy = strategy;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StrategyVariants strategy={strategy} setStrategy={setStrategy} />
|
<StrategyVariants
|
||||||
|
strategy={strategy}
|
||||||
|
setStrategy={setStrategy}
|
||||||
|
projectId={'default'}
|
||||||
|
environment={'development'}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
render(
|
render(
|
||||||
|
@ -24,9 +24,9 @@ export const StrategyVariants: FC<{
|
|||||||
React.SetStateAction<Partial<IFeatureStrategy>>
|
React.SetStateAction<Partial<IFeatureStrategy>>
|
||||||
>;
|
>;
|
||||||
strategy: Partial<IFeatureStrategy>;
|
strategy: Partial<IFeatureStrategy>;
|
||||||
}> = ({ strategy, setStrategy }) => {
|
projectId: string;
|
||||||
const projectId = useRequiredPathParam('projectId');
|
environment: string;
|
||||||
const environment = useRequiredQueryParam('environmentId');
|
}> = ({ strategy, setStrategy, projectId, environment }) => {
|
||||||
const [variantsEdit, setVariantsEdit] = useState<IFeatureVariantEdit[]>([]);
|
const [variantsEdit, setVariantsEdit] = useState<IFeatureVariantEdit[]>([]);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const stickiness =
|
const stickiness =
|
||||||
|
Loading…
Reference in New Issue
Block a user