Skip to content

Commit 442575b

Browse files
committed
fixes
1 parent 3f11aa4 commit 442575b

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/components/ComponentsSelection/ComponentsSelectionContainer.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export const getSelectedComponents = (components: ComponentsListItem[]) => {
2626
const isCrossplaneSelected = components.some(({ name, isSelected }) => name === 'crossplane' && isSelected);
2727
return components.filter((component) => {
2828
if (!component.isSelected) return false;
29-
if (component.name?.includes('provider') && !isCrossplaneSelected) {
30-
return false;
31-
}
32-
return true;
29+
return !(component.name?.includes('provider') && !isCrossplaneSelected);
3330
});
3431
};
3532

@@ -140,12 +137,11 @@ export const ComponentsSelectionContainer: React.FC<ComponentsSelectionProps> =
140137
});
141138

142139
setComponentsList(updated);
143-
}, [defaultComponents, componentsList, setComponentsList]);
140+
}, [defaultComponents, componentsList, setComponentsList, initialSelection]);
144141

145142
if (isLoading) {
146143
return <Loading />;
147144
}
148-
console.log(error);
149145

150146
if (error) {
151147
return <IllustratedError compact={true} />;

src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { canConnectToMCP } from '../controlPlanes.ts';
2828
import { Infobox } from '../../Ui/Infobox/Infobox.tsx';
2929

3030
import { ControlPlaneCardMenu } from './ControlPlaneCardMenu.tsx';
31-
import { CreateManagedControlPlaneWizardContainer } from '../../Wizards/CreateManagedControlPlane/CreateManagedControlPlaneWizardContainer.tsx';
31+
3232
import { EditManagedControlPlaneWizardDataLoader } from '../../Wizards/CreateManagedControlPlane/EditManagedControlPlaneWizardDataLoader.tsx';
3333

3434
interface Props {
@@ -128,7 +128,6 @@ export function ControlPlaneCard({ controlPlane, workspace, projectName }: Props
128128
<EditManagedControlPlaneWizardDataLoader
129129
isOpen={isEditManagedControlPlaneWizardOpen}
130130
setIsOpen={setIsEditManagedControlPlaneWizardOpen}
131-
projectName={projectName}
132131
workspaceName={namespace}
133132
resourceName={name}
134133
/>

0 commit comments

Comments
 (0)