Skip to content

Commit 0948986

Browse files
waleedlatif1claude
andcommitted
fix(slack): fix canvas transformResponse type mismatch
Provide required output fields on error path to match SlackCanvasResponse type. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1673fc0 commit 0948986

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/sim/tools/slack/canvas.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,16 @@ export const slackCanvasTool: ToolConfig<SlackCanvasParams, SlackCanvasResponse>
8787
},
8888
},
8989

90-
transformResponse: async (response: Response) => {
90+
transformResponse: async (response: Response): Promise<SlackCanvasResponse> => {
9191
const data = await response.json()
9292

9393
if (!data.ok) {
9494
return {
9595
success: false,
9696
output: {
97+
canvas_id: '',
98+
channel: '',
99+
title: '',
97100
error: data.error || 'Unknown error',
98101
},
99102
}

0 commit comments

Comments
 (0)