Skip to content

Commit

Permalink
Remove ErrorBoundary (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-stackrox authored Aug 21, 2023
1 parent 7b619f5 commit 2c05d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 74 deletions.
66 changes: 0 additions & 66 deletions ui/src/components/ErrorBoundary.tsx

This file was deleted.

13 changes: 5 additions & 8 deletions ui/src/containers/LaunchClusterPage/LaunchClusterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { FlavorServiceApi } from 'generated/client';
import useApiQuery from 'client/useApiQuery';
import configuration from 'client/configuration';
import PageSection from 'components/PageSection';
import ErrorBoundary from 'components/ErrorBoundary';
import FullPageSpinner from 'components/FullPageSpinner';
import FullPageError from 'components/FullPageError';
import ClusterForm from './ClusterForm';
Expand All @@ -28,13 +27,11 @@ export default function LaunchClusterPage(): ReactElement {

return (
<PageSection header={`Launch "${data.Name}" Cluster (${data?.Availability || 'Alpha'})`}>
<ErrorBoundary message="UI doesn't support this flavor yet. Use infractl instead.">
<ClusterForm
flavorId={flavorId}
flavorParameters={data.Parameters}
onClusterCreated={(clusterId): void => navigate(`/cluster/${clusterId}`)}
/>
</ErrorBoundary>
<ClusterForm
flavorId={flavorId}
flavorParameters={data.Parameters}
onClusterCreated={(clusterId): void => navigate(`/cluster/${clusterId}`)}
/>
</PageSection>
);
}

0 comments on commit 2c05d2d

Please sign in to comment.