Skip to content

Commit

Permalink
Fix wrong mounting condition in side window alert list
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 4, 2024
1 parent c0c01f9 commit 60b85a3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions frontend/src/features/SideWindow/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,12 @@ export function Alert({ baseRef }: AlertProps) {
options={ALERT_SUB_MENU_OPTIONS}
value={subMenu}
/>

{isSeafrontGroupMenu && (
<AlertListAndReportingList
baseRef={baseRef as MutableRefObject<HTMLDivElement>}
selectedSeafrontGroup={isSeafrontGroupMenu ? (subMenu as SeafrontGroup) : SeafrontGroup.MEMN}
selectedTab={selectedTab}
setSelectedTab={setSelectedTab}
/>
)}
<AlertListAndReportingList
baseRef={baseRef as MutableRefObject<HTMLDivElement>}
selectedSeafrontGroup={isSeafrontGroupMenu ? (subMenu as SeafrontGroup) : SeafrontGroup.MEMN}
selectedTab={selectedTab}
setSelectedTab={setSelectedTab}
/>
{subMenu === AdditionalSubMenu.SUSPENDED_ALERTS && <SilencedAlerts />}
</>
)
Expand Down

0 comments on commit 60b85a3

Please sign in to comment.