Skip to content

Commit 8680b16

Browse files
committed
Update ComponentsSelectionContainer.tsx
1 parent a7594fb commit 8680b16

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/ComponentsSelection/ComponentsSelectionContainer.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ export const ComponentsSelectionContainer: React.FC<ComponentsSelectionProps> =
147147
}
148148
console.log(error);
149149

150-
// if (error) {
151-
// return <IllustratedError compact={true} />;
152-
// }
153-
//
154-
// // Defensive: If the API returned no items, show error
155-
// if (!componentsList || componentsList.length === 0) {
156-
// return <IllustratedError title={t('componentsSelection.cannotLoad')} compact={true} />;
157-
// }
150+
if (error) {
151+
return <IllustratedError compact={true} />;
152+
}
153+
154+
// Defensive: If the API returned no items, show error
155+
if (!componentsList || componentsList.length === 0) {
156+
return <IllustratedError title={t('componentsSelection.cannotLoad')} compact={true} />;
157+
}
158158

159159
return (
160160
<ComponentsSelection

0 commit comments

Comments
 (0)