Skip to content

Commit c369e04

Browse files
committed
Fix lint
1 parent 27c7bcf commit c369e04

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { useUpdateNodeInternals } from 'reactflow'
88
import {
99
Button,
1010
Code,
11-
Textarea,
1211
calculateGutterWidth,
1312
getCodeEditorProps,
1413
highlight,
1514
languages,
15+
Textarea,
1616
Tooltip,
1717
} from '@/components/emcn'
1818
import { Trash } from '@/components/emcn/icons/trash'
@@ -815,18 +815,16 @@ export function ConditionInput({
815815
<Button
816816
variant='ghost'
817817
onClick={() => removeBlock(block.id)}
818-
disabled={
819-
isPreview ||
820-
disabled ||
821-
conditionalBlocks.length === 1
822-
}
818+
disabled={isPreview || disabled || conditionalBlocks.length === 1}
823819
className='h-auto p-0 text-[var(--text-error)] hover:text-[var(--text-error)]'
824820
>
825821
<Trash className='h-[14px] w-[14px]' />
826822
<span className='sr-only'>Delete Block</span>
827823
</Button>
828824
</Tooltip.Trigger>
829-
<Tooltip.Content>{isRouterMode ? 'Delete Route' : 'Delete Condition'}</Tooltip.Content>
825+
<Tooltip.Content>
826+
{isRouterMode ? 'Delete Route' : 'Delete Condition'}
827+
</Tooltip.Content>
830828
</Tooltip.Root>
831829
</div>
832830
</div>
@@ -869,9 +867,7 @@ export function ConditionInput({
869867
setTimeout(() => {
870868
setConditionalBlocks((blocks) =>
871869
blocks.map((b) =>
872-
b.id === block.id
873-
? { ...b, showTags: false, showEnvVars: false }
874-
: b
870+
b.id === block.id ? { ...b, showTags: false, showEnvVars: false } : b
875871
)
876872
)
877873
}, 150)

apps/sim/blocks/blocks/router.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,7 @@ const getApiKeyCondition = () => {
180180
}
181181
: () => ({
182182
field: 'model',
183-
value: [
184-
...getCurrentOllamaModels(),
185-
...getCurrentVLLMModels(),
186-
...providers.vertex.models,
187-
],
183+
value: [...getCurrentOllamaModels(), ...getCurrentVLLMModels(), ...providers.vertex.models],
188184
not: true,
189185
})
190186
}

apps/sim/executor/dag/construction/edges.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { createLogger } from '@sim/logger'
2-
import { EDGE, isConditionBlockType, isRouterBlockType, isRouterV2BlockType } from '@/executor/constants'
2+
import {
3+
EDGE,
4+
isConditionBlockType,
5+
isRouterBlockType,
6+
isRouterV2BlockType,
7+
} from '@/executor/constants'
38
import type { DAG } from '@/executor/dag/builder'
49
import {
510
buildBranchNodeId,

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export class RouterBlockHandler implements BlockHandler {
3434
constructor(private pathTracker?: any) {}
3535

3636
canHandle(block: SerializedBlock): boolean {
37-
return (
38-
block.metadata?.id === BlockType.ROUTER || block.metadata?.id === BlockType.ROUTER_V2
39-
)
37+
return block.metadata?.id === BlockType.ROUTER || block.metadata?.id === BlockType.ROUTER_V2
4038
}
4139

4240
async execute(

0 commit comments

Comments
 (0)