diff --git a/apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/components/deployed-workflow-modal.tsx b/apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/components/deployed-workflow-modal.tsx
index d3063042ca..d45c768178 100644
--- a/apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/components/deployed-workflow-modal.tsx
+++ b/apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/components/deployed-workflow-modal.tsx
@@ -1,6 +1,6 @@
'use client'
-import { useEffect, useRef, useState } from 'react'
+import { useState } from 'react'
import {
AlertDialog,
AlertDialogAction,
diff --git a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/long-input.tsx b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/long-input.tsx
index 1c8a5b38f7..4f1f61eebe 100644
--- a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/long-input.tsx
+++ b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/long-input.tsx
@@ -319,41 +319,41 @@ export function LongInput({
- {
- if (onChange) {
- onChange(newValue)
- } else if (!isPreview) {
- setStoreValue(newValue)
- }
- }}
- searchTerm={searchTerm}
- inputValue={value?.toString() ?? ''}
- cursorPosition={cursorPosition}
- onClose={() => {
- setShowEnvVars(false)
- setSearchTerm('')
- }}
- />
- {
- if (onChange) {
- onChange(newValue)
- } else if (!isPreview) {
- setStoreValue(newValue)
- }
- }}
- blockId={blockId}
- activeSourceBlockId={activeSourceBlockId}
- inputValue={value?.toString() ?? ''}
- cursorPosition={cursorPosition}
- onClose={() => {
- setShowTags(false)
- setActiveSourceBlockId(null)
- }}
- />
+ {
+ if (onChange) {
+ onChange(newValue)
+ } else if (!isPreview) {
+ setStoreValue(newValue)
+ }
+ }}
+ searchTerm={searchTerm}
+ inputValue={value?.toString() ?? ''}
+ cursorPosition={cursorPosition}
+ onClose={() => {
+ setShowEnvVars(false)
+ setSearchTerm('')
+ }}
+ />
+ {
+ if (onChange) {
+ onChange(newValue)
+ } else if (!isPreview) {
+ setStoreValue(newValue)
+ }
+ }}
+ blockId={blockId}
+ activeSourceBlockId={activeSourceBlockId}
+ inputValue={value?.toString() ?? ''}
+ cursorPosition={cursorPosition}
+ onClose={() => {
+ setShowTags(false)
+ setActiveSourceBlockId(null)
+ }}
+ />
)
}
diff --git a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/sub-block.tsx b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/sub-block.tsx
index 735cbfcb6c..23f4c0dda2 100644
--- a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/sub-block.tsx
+++ b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/sub-block.tsx
@@ -3,7 +3,6 @@ import { Label } from '@/components/ui/label'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { getBlock } from '@/blocks/index'
import type { SubBlockConfig } from '@/blocks/types'
-import { useSubBlockStore } from '@/stores/workflows/subblock/store'
import { useWorkflowStore } from '@/stores/workflows/workflow/store'
import { CheckboxList } from './components/checkbox-list'
import { Code } from './components/code'
@@ -46,7 +45,6 @@ export function SubBlock({
e.stopPropagation()
}
-
const isFieldRequired = () => {
const blockType = useWorkflowStore.getState().blocks[blockId]?.type
if (!blockType) return false