mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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 | ||||
|                         strategy={strategy} | ||||
|                         setStrategy={setStrategy} | ||||
|                         environment={environmentId} | ||||
|                         projectId={projectId} | ||||
|                     /> | ||||
|                 } | ||||
|             /> | ||||
|  | ||||
| @ -32,7 +32,12 @@ test('should render variants', async () => { | ||||
|         currentStrategy = strategy; | ||||
| 
 | ||||
|         return ( | ||||
|             <StrategyVariants strategy={strategy} setStrategy={setStrategy} /> | ||||
|             <StrategyVariants | ||||
|                 strategy={strategy} | ||||
|                 setStrategy={setStrategy} | ||||
|                 projectId={'default'} | ||||
|                 environment={'development'} | ||||
|             /> | ||||
|         ); | ||||
|     }; | ||||
|     render( | ||||
|  | ||||
| @ -24,9 +24,9 @@ export const StrategyVariants: FC<{ | ||||
|         React.SetStateAction<Partial<IFeatureStrategy>> | ||||
|     >; | ||||
|     strategy: Partial<IFeatureStrategy>; | ||||
| }> = ({ strategy, setStrategy }) => { | ||||
|     const projectId = useRequiredPathParam('projectId'); | ||||
|     const environment = useRequiredQueryParam('environmentId'); | ||||
|     projectId: string; | ||||
|     environment: string; | ||||
| }> = ({ strategy, setStrategy, projectId, environment }) => { | ||||
|     const [variantsEdit, setVariantsEdit] = useState<IFeatureVariantEdit[]>([]); | ||||
|     const theme = useTheme(); | ||||
|     const stickiness = | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user