refac
This commit is contained in:
@@ -3138,7 +3138,10 @@
|
||||
filter_ids: selectedFilterIds.length > 0 ? selectedFilterIds : undefined,
|
||||
tool_ids: toolIds.length > 0 ? toolIds : undefined,
|
||||
skill_ids: skillIds.length > 0 ? skillIds : undefined,
|
||||
terminal_id: terminalEnabled ? (activeTerminalId ?? undefined) : undefined,
|
||||
terminal_id:
|
||||
terminalEnabled && ($terminalServers ?? []).some((t) => t.id && t.id === activeTerminalId)
|
||||
? activeTerminalId
|
||||
: undefined,
|
||||
tool_servers: [
|
||||
...($toolServers ?? []).filter(
|
||||
(server, idx) => toolServerIds.includes(idx) || toolServerIds.includes(server?.id)
|
||||
|
||||
Reference in New Issue
Block a user