Skip to content

Commit 2469b93

Browse files
committed
fix
1 parent 8fb3105 commit 2469b93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ComponentsSelection/ComponentsSelectionContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const ComponentsSelectionContainer: React.FC<ComponentsSelectionProps> =
101101
setInitialComponentsList(newComponentsList);
102102
setComponentsList(newComponentsList);
103103
initializedComponents.current = true;
104+
// eslint-disable-next-line react-hooks/exhaustive-deps
104105
}, [setComponentsList, defaultComponents, initialSelection, availableManagedComponentsListData?.items]);
105106

106107
useEffect(() => {
@@ -147,6 +148,7 @@ export const ComponentsSelectionContainer: React.FC<ComponentsSelectionProps> =
147148
});
148149

149150
setComponentsList(updated);
151+
// eslint-disable-next-line react-hooks/exhaustive-deps
150152
}, [defaultComponents, componentsList, setComponentsList, initialSelection]);
151153

152154
if (isLoading) {
@@ -157,7 +159,6 @@ export const ComponentsSelectionContainer: React.FC<ComponentsSelectionProps> =
157159
return <IllustratedError compact={true} />;
158160
}
159161

160-
// Defensive: If the API returned no items, show error
161162
if (!componentsList || componentsList.length === 0) {
162163
return <IllustratedError title={t('componentsSelection.cannotLoad')} compact={true} />;
163164
}

src/lib/api/types/crate/controlPlanes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export interface Metadata {
66
name: string;
77
namespace: string;
88
annotations: {
9-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
10-
[annotation: string]: any;
9+
[annotation: string]: unknown;
1110
};
1211
}
1312

0 commit comments

Comments
 (0)