(blockId, subBlockId, false, isPreview, propValue)
const fields = value || [DEFAULT_FIELD]
- // Log when in preview mode to verify it's working
- useEffect(() => {
- if (isPreview) {
- logger.info(`[PREVIEW] InputFormat for ${blockId}:${subBlockId}`, {
- isPreview,
- propValue,
- value
- });
- }
- }, [isPreview, propValue, value, blockId, subBlockId]);
-
// Field operations
const addField = () => {
const newField: InputField = {
diff --git a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/switch.tsx b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/switch.tsx
index 3120bef461..a1bd360965 100644
--- a/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/switch.tsx
+++ b/apps/sim/app/w/[id]/components/workflow-block/components/sub-block/components/switch.tsx
@@ -1,10 +1,8 @@
import { useEffect } from 'react'
import { Label } from '@/components/ui/label'
import { Switch as UISwitch } from '@/components/ui/switch'
-import { createLogger } from '@/lib/logs/console-logger'
import { useSubBlockValue } from '../hooks/use-sub-block-value'
-const logger = createLogger('Switch')
interface SwitchProps {
blockId: string
@@ -23,17 +21,6 @@ export function Switch({
}: SwitchProps) {
const [value, setValue] = useSubBlockValue(blockId, subBlockId, false, isPreview, propValue)
- // Log when in preview mode to verify it's working
- useEffect(() => {
- if (isPreview) {
- logger.info(`[PREVIEW] Switch for ${blockId}:${subBlockId}`, {
- isPreview,
- propValue,
- value
- });
- }
- }, [isPreview, propValue, value, blockId, subBlockId]);
-
return (