File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/Wizards/CreateManagedControlPlane Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,10 +353,10 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
353353 const initialSelection = useMemo ( ( ) => {
354354 if ( ! isEditMode ) return undefined ;
355355 const selection : Record < string , { isSelected : boolean ; version : string } > = { } ;
356- const components = initialData ?. spec . components ;
357- Object . keys ( components ?? { } ) . forEach ( ( key ) => {
356+ const componentsMap = ( initialData ?. spec . components ?? { } ) as Record < string , any > ;
357+ Object . keys ( componentsMap ) . forEach ( ( key ) => {
358358 if ( key === 'apiServer' || key === 'landscaper' ) return ;
359- const value = components ?. [ key ] ;
359+ const value = componentsMap [ key ] ;
360360 if ( key === 'crossplane' ) {
361361 selection [ key ] = { isSelected : true , version : value . version ?? '' } ;
362362 ( value . providers ?? [ ] ) . forEach ( ( prov : { name : string ; version : string } ) => {
You can’t perform that action at this time.
0 commit comments