Skip to content

Commit 03a4ada

Browse files
committed
Fix lint
1 parent e8bdb89 commit 03a4ada

File tree

1 file changed

+3
-8
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call

1 file changed

+3
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ function extractPlanFromBlocks(blocks: SubAgentContentBlock[] | undefined): {
6666
// Tool call arguments can be in different places depending on the source
6767
// Also handle nested data.arguments structure from the schema
6868
const tc = planRespondBlock.toolCall as any
69-
const args =
70-
tc.params ||
71-
tc.parameters ||
72-
tc.input ||
73-
tc.arguments ||
74-
tc.data?.arguments ||
75-
{}
69+
const args = tc.params || tc.parameters || tc.input || tc.arguments || tc.data?.arguments || {}
7670
const stepsArray = args.steps
7771

7872
if (!Array.isArray(stepsArray) || stepsArray.length === 0) {
@@ -1287,7 +1281,8 @@ function SubagentContentRenderer({
12871281
const hasPlan = !!(planSteps && Object.keys(planSteps).length > 0)
12881282

12891283
const hasSpecialTags = !!(
1290-
hasPlan || (allParsed.options && Object.keys(allParsed.options).length > 0)
1284+
hasPlan ||
1285+
(allParsed.options && Object.keys(allParsed.options).length > 0)
12911286
)
12921287

12931288
const formatDuration = (ms: number) => {

0 commit comments

Comments
 (0)