mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add ErrorBoundary component
- wrap a myriad of components in ErrorBoundary resolves #270
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import classNames from "classnames";
|
||||
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import Item from "components/services/item";
|
||||
|
||||
const columnMap = [
|
||||
@@ -23,7 +24,7 @@ export default function List({ services, layout }) {
|
||||
)}
|
||||
>
|
||||
{services.map((service) => (
|
||||
<Item key={service.name} service={service} />
|
||||
<ErrorBoundary key={service.name}><Item key={service.name} service={service} /></ErrorBoundary>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user