Don't break the entire server UI for a broken console, ref #3121

This commit is contained in:
Dane Everitt 2021-03-03 19:31:39 -08:00
parent f58db890df
commit bc87a9cf7d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -9,6 +9,7 @@ import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
import isEqual from 'react-fast-compare';
import PowerControls from '@/components/server/PowerControls';
import { EulaModalFeature } from '@feature/index';
import ErrorBoundary from '@/components/elements/ErrorBoundary';
export type PowerAction = 'start' | 'stop' | 'restart' | 'kill';
@ -51,7 +52,9 @@ const ServerConsole = () => {
</div>
<div css={tw`w-full lg:w-3/4 mt-4 lg:mt-0 lg:pl-4`}>
<SuspenseSpinner>
<ChunkedConsole/>
<ErrorBoundary>
<ChunkedConsole/>
</ErrorBoundary>
<ChunkedStatGraphs/>
</SuspenseSpinner>
{eggFeatures.includes('eula') &&