Skip to content

Commit c58ccdd

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(agent): apply CI tool input formatting
1 parent 3529bc7 commit c58ccdd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ export const ToolInput = memo(function ToolInput({
439439
(nextTools: StoredTool[], positionedTools: StoredTool[] = nextTools) => {
440440
setLocalExpanded((expanded) =>
441441
Object.fromEntries(
442-
positionedTools.map((tool, index) => [index, expanded[selectedTools.indexOf(tool)] ?? false])
442+
positionedTools.map((tool, index) => [
443+
index,
444+
expanded[selectedTools.indexOf(tool)] ?? false,
445+
])
443446
)
444447
)
445448
const canonicalModes = reindexToolCanonicalModes(
@@ -1645,9 +1648,7 @@ export const ToolInput = memo(function ToolInput({
16451648
type='button'
16461649
variant='ghost'
16471650
className='min-w-0 justify-start gap-2 p-0 text-left focus-visible:bg-[var(--surface-active)] disabled:opacity-100'
1648-
disabled={
1649-
hasToolBody ? isPreview && !allowExpandInPreview : !isCustomTool
1650-
}
1651+
disabled={hasToolBody ? isPreview && !allowExpandInPreview : !isCustomTool}
16511652
aria-expanded={hasToolBody ? isExpandedForDisplay : undefined}
16521653
aria-controls={hasToolBody ? bodyId : undefined}
16531654
aria-label={

0 commit comments

Comments
 (0)