Skip to content

Commit c340d5e

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: fix logic bug when deciding to render banners (#42739)
GitOrigin-RevId: 27addbf7ea1d8b952645b54b35b581ee2a0457ea
1 parent 3c63ed8 commit c340d5e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

npm-packages/dashboard-common/src/layouts/DeploymentDashboardLayout.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,12 @@ export function DeploymentDashboardLayout({
140140
return (
141141
<FunctionsProvider>
142142
<div className="flex h-full grow flex-col overflow-y-hidden">
143-
{visiblePages === undefined ||
144-
(visiblePages.includes("settings") && (
145-
<>
146-
<PauseBanner />
147-
<NodeVersionBanner />
148-
</>
149-
))}
143+
{(visiblePages === undefined || visiblePages.includes("settings")) && (
144+
<>
145+
<PauseBanner />
146+
<NodeVersionBanner />
147+
</>
148+
)}
150149
<div className="flex h-full flex-col overflow-y-auto sm:flex-row">
151150
{sidebarItems.length > 0 && (
152151
<Sidebar

0 commit comments

Comments
 (0)