Skip to content

Commit 9ede001

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
lint
1 parent 209d822 commit 9ede001

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ReactElement } from 'react'
22
import { useEffect, useMemo, useRef, useState } from 'react'
3-
import { Wand2, AlertTriangle } from 'lucide-react'
3+
import { Wand2 } from 'lucide-react'
44
import { highlight, languages } from 'prismjs'
55
import 'prismjs/components/prism-javascript'
66
import 'prismjs/themes/prism.css'
@@ -365,7 +365,7 @@ export function Code({
365365
className={cn(
366366
'group relative min-h-[100px] rounded-md border bg-background font-mono text-sm transition-colors',
367367
isConnecting && 'ring-2 ring-blue-500 ring-offset-2',
368-
!isValidJson && 'border-destructive border-2 bg-destructive/10'
368+
!isValidJson && 'border-2 border-destructive bg-destructive/10'
369369
)}
370370
title={!isValidJson ? 'Invalid JSON' : undefined}
371371
onDragOver={(e) => e.preventDefault()}

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/sub-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react'
2-
import { Info, AlertTriangle } from 'lucide-react'
2+
import { AlertTriangle, Info } from 'lucide-react'
33
import { Label } from '@/components/ui/label'
44
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
55
import { getBlock } from '@/blocks/index'

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,13 +718,14 @@ export class AgentBlockHandler implements BlockHandler {
718718
// All parsing attempts failed
719719
logger.error('Failed to parse response content as JSON:', {
720720
content: content.substring(0, 200) + (content.length > 200 ? '...' : ''),
721-
responseFormat: responseFormat
721+
responseFormat: responseFormat,
722722
})
723723

724724
// Return standard response but include a warning
725725
const standardResponse = this.processStandardResponse(result)
726726
return Object.assign(standardResponse, {
727-
_responseFormatWarning: 'Response format was specified but content could not be parsed as JSON. Falling back to standard format.',
727+
_responseFormatWarning:
728+
'Response format was specified but content could not be parsed as JSON. Falling back to standard format.',
728729
})
729730
}
730731

0 commit comments

Comments
 (0)