Skip to content

Commit f277134

Browse files
committed
Update ComponentsSelectionProvider.tsx
1 parent 0ff1465 commit f277134

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/ComponentsSelection/ComponentsSelectionProvider.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ export const ComponentsSelectionProvider: React.FC<ComponentsSelectionProviderPr
6565

6666
// Initialize components list from API + template/defaults/initialSelection
6767
useEffect(() => {
68-
if (
69-
initializedComponents.current ||
70-
!availableManagedComponentsListData?.items ||
71-
availableManagedComponentsListData.items.length === 0
72-
) {
68+
if (initializedComponents.current) {
69+
return;
70+
}
7371
if (!availableManagedComponentsListData?.items) {
7472
return;
7573
}

0 commit comments

Comments
 (0)