Skip to content

Commit 34fdb94

Browse files
committed
test(agent): drop redundant cast in tool mode reindex tests
1 parent 112fa04 commit 34fdb94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/workflows/editing/operations.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ describe('tool canonical-mode reindexing', () => {
12121212
const { state } = applyOperationsToWorkflowState(workflow, [
12131213
{ operation_type: 'edit', block_id: 'agent', params: { inputs: { tools } } },
12141214
])
1215-
return (state as any).blocks.agent.data.canonicalModes
1215+
return state.blocks.agent.data.canonicalModes
12161216
}
12171217

12181218
it('moves each tool mode with it when the edit reorders the tools', () => {

0 commit comments

Comments
 (0)