diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/code.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/code.tsx
index 5affcbbac..a95410383 100644
--- a/app/w/[id]/components/workflow-block/components/sub-block/components/code.tsx
+++ b/app/w/[id]/components/workflow-block/components/sub-block/components/code.tsx
@@ -13,9 +13,15 @@ interface CodeProps {
blockId: string
subBlockId: string
isConnecting: boolean
+ placeholder?: string
}
-export function Code({ blockId, subBlockId, isConnecting }: CodeProps) {
+export function Code({
+ blockId,
+ subBlockId,
+ isConnecting,
+ placeholder = 'Write JavaScript...',
+}: CodeProps) {
// State management
const [storeValue, setStoreValue] = useSubBlockValue(blockId, subBlockId)
const [code, setCode] = useState('')
@@ -201,7 +207,7 @@ export function Code({ blockId, subBlockId, isConnecting }: CodeProps) {
>
{code.length === 0 && (
- Write JavaScript...
+ {placeholder}
)}
diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/table.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/table.tsx
index c89ea9e07..0849fa8f6 100644
--- a/app/w/[id]/components/workflow-block/components/sub-block/components/table.tsx
+++ b/app/w/[id]/components/workflow-block/components/sub-block/components/table.tsx
@@ -18,39 +18,10 @@ interface TableRow {
export function Table({ columns, blockId, subBlockId }: TableProps) {
const [value, setValue] = useSubBlockValue(blockId, subBlockId)
- const activePositionRef = useRef<{ rowIndex: number; column: string } | null>(null)
- const inputRefs = useRef