= ({
>
- {openBackgroundSectionMenuId === 'subagents' ? (
+ {openBackgroundSectionMenuId === 'subagents' && backgroundActivityMenuPosition ? createPortal(
-
+ ,
+ document.body,
) : null}
) : null}
@@ -731,11 +818,14 @@ export const FlowChatHeader: React.FC = ({
>
- {openBackgroundSectionMenuId === 'commands' ? (
+ {openBackgroundSectionMenuId === 'commands' && backgroundActivityMenuPosition ? createPortal(
-
+ ,
+ document.body,
) : null}
) : null}