Skip to content

Commit d3d0dbc

Browse files
committed
merge conditions
1 parent 7dc7a00 commit d3d0dbc

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

packages/next/src/next-devtools/dev-overlay/dev-overlay.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ export function DevOverlay({
3939
<>
4040
{state.showIndicator &&
4141
(process.env.__NEXT_DEVTOOL_NEW_PANEL_UI ? (
42-
<DevToolsIndicatorNew
43-
scale={scale}
44-
state={state}
45-
dispatch={dispatch}
46-
errorCount={totalErrorCount}
47-
isBuildError={isBuildError}
48-
/>
42+
<>
43+
<DevToolsIndicatorNew
44+
scale={scale}
45+
state={state}
46+
dispatch={dispatch}
47+
errorCount={totalErrorCount}
48+
isBuildError={isBuildError}
49+
/>
50+
51+
{state.isDevToolsPanelOpen && <DevToolsPanel />}
52+
</>
4953
) : (
5054
<DevToolsIndicator
5155
scale={scale}
@@ -57,9 +61,6 @@ export function DevOverlay({
5761
/>
5862
))}
5963

60-
{process.env.__NEXT_DEVTOOL_NEW_PANEL_UI &&
61-
state.isDevToolsPanelOpen && <DevToolsPanel />}
62-
6364
<ErrorOverlay
6465
state={state}
6566
dispatch={dispatch}

0 commit comments

Comments
 (0)