Skip to content

Commit 05dc482

Browse files
lucasgoralCopilot
andauthored
Update src/components/ComponentsSelection/ComponentsSelectionContainer.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 3710cae commit 05dc482

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/ComponentsSelection/ComponentsSelectionContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const getSelectedComponents = (components: ComponentsListItem[]) => {
2929
const isCrossplaneSelected = components.some(({ name, isSelected }) => name === 'crossplane' && isSelected);
3030
return components.filter((component) => {
3131
if (!component.isSelected) return false;
32-
return !(component.name?.includes('provider') && !isCrossplaneSelected);
32+
if (component.name?.includes('provider') && !isCrossplaneSelected) return false;
33+
return true;
3334
});
3435
};
3536

0 commit comments

Comments
 (0)