Fix for when Traceroute is not installed on host

This commit is contained in:
Alicia Sykes
2023-07-07 21:30:54 +01:00
parent 83272e4536
commit dd2baec866
2 changed files with 77 additions and 23 deletions

View File

@@ -9,6 +9,7 @@ import Card from 'components/Form/Card';
import Modal from 'components/Form/Modal';
import Footer from 'components/misc/Footer';
import { RowProps } from 'components/Form/Row';
import ErrorBoundary from 'components/misc/ErrorBoundary';
import docs from 'utils/docs';
@@ -435,12 +436,14 @@ const Results = (): JSX.Element => {
{
resultCardData.map(({ id, title, result, refresh, Component }, index: number) => (
(result && !result.error) ? (
<Component
key={`${title}-${index}`}
data={{...result}}
title={title}
actionButtons={refresh ? MakeActionButtons(title, refresh, () => showInfo(id)) : undefined}
/>
<ErrorBoundary title={title}>
<Component
key={`${title}-${index}`}
data={{...result}}
title={title}
actionButtons={refresh ? MakeActionButtons(title, refresh, () => showInfo(id)) : undefined}
/>
</ErrorBoundary>
) : <></>
))
}