Skip to content

Commit bc87a9c

Browse files
committed
Don't break the entire server UI for a broken console, ref pterodactyl#3121
1 parent f58db89 commit bc87a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/scripts/components/server/ServerConsole.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
99
import isEqual from 'react-fast-compare';
1010
import PowerControls from '@/components/server/PowerControls';
1111
import { EulaModalFeature } from '@feature/index';
12+
import ErrorBoundary from '@/components/elements/ErrorBoundary';
1213

1314
export type PowerAction = 'start' | 'stop' | 'restart' | 'kill';
1415

@@ -51,7 +52,9 @@ const ServerConsole = () => {
5152
</div>
5253
<div css={tw`w-full lg:w-3/4 mt-4 lg:mt-0 lg:pl-4`}>
5354
<SuspenseSpinner>
54-
<ChunkedConsole/>
55+
<ErrorBoundary>
56+
<ChunkedConsole/>
57+
</ErrorBoundary>
5558
<ChunkedStatGraphs/>
5659
</SuspenseSpinner>
5760
{eggFeatures.includes('eula') &&

0 commit comments

Comments
 (0)