fix: handle array-format MCP command in settings display

This commit is contained in:
Mark IJbema
2026-03-16 09:16:17 +01:00
parent 146da40471
commit fdf95032cf
@@ -372,7 +372,10 @@ const AgentBehaviourTab: Component = () => {
>
<Show when={mcp.command}>
<div>
command: {mcp.command} {(mcp.args ?? []).join(" ")}
command:{" "}
{Array.isArray(mcp.command)
? mcp.command.join(" ")
: `${mcp.command} ${(mcp.args ?? []).join(" ")}`}
</div>
</Show>
<Show when={mcp.url}>