diff --git a/gui/src/pages/config/sections/ToolsSection.tsx b/gui/src/pages/config/sections/ToolsSection.tsx index f9054ae2e..a48bd5df7 100644 --- a/gui/src/pages/config/sections/ToolsSection.tsx +++ b/gui/src/pages/config/sections/ToolsSection.tsx @@ -511,29 +511,32 @@ export function ToolsSection() { - ) : mode === "chat" ? ( - - - All MCPs are disabled in Chat, switch to Plan or Agent mode to use - MCPs - - - ) : mergedBlocks.length > 0 ? ( - mergedBlocks.map(({ block, blockFromYaml }) => { - return ( - - ); - }) ) : ( - - - + <> + {mode === "chat" && ( + + + All MCPs are disabled in Chat, switch to Plan or Agent mode to + use MCPs + + + )} + {mergedBlocks.length > 0 ? ( + mergedBlocks.map(({ block, blockFromYaml }) => ( + + )) + ) : ( + + + + )} + )}