diff --git a/src/renderer/components/layout/PaneContent.tsx b/src/renderer/components/layout/PaneContent.tsx index 4ab940d5..aa077f90 100644 --- a/src/renderer/components/layout/PaneContent.tsx +++ b/src/renderer/components/layout/PaneContent.tsx @@ -86,6 +86,7 @@ const PaneLazyFallback = (): React.JSX.Element => { const PaneTabSlot = ({ tab, isActive, isPaneFocused }: PaneTabSlotProps): React.JSX.Element => { const [hasActivated, setHasActivated] = useState(isActive); + const shouldRenderContent = hasActivated && (tab.type !== 'teams' || isActive); useEffect(() => { if (isActive) { @@ -95,7 +96,7 @@ const PaneTabSlot = ({ tab, isActive, isPaneFocused }: PaneTabSlotProps): React. return (
- {hasActivated && ( + {shouldRenderContent && ( }> {tab.type === 'dashboard' && } {tab.type === 'notifications' && }