File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/components/ComponentsSelection Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments