Skip to content

Commit 33caff5

Browse files
committed
fix(clickup): reject empty update_task bodies with a clear local error, matching sibling update tools
1 parent 4aa17bf commit 33caff5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/sim/tools/clickup/update_task.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ export const clickupUpdateTaskTool: ToolConfig<ClickUpUpdateTaskParams, ClickUpT
162162
}
163163
}
164164

165+
if (Object.keys(body).length === 0) {
166+
throw new Error('At least one field to update is required to update a task')
167+
}
168+
165169
return body
166170
},
167171
},

0 commit comments

Comments
 (0)