File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
apps/sim/app/workspace/[workspaceId]/w
[workflowId]/components/panel/components/editor/components/sub-block/components
components/preview/components/preview-editor Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,8 @@ export function LongInput({
354354 ref = { overlayRef }
355355 className = { cn (
356356 'absolute inset-0 box-border overflow-auto whitespace-pre-wrap break-words border border-transparent bg-transparent px-[8px] py-[8px] font-medium font-sans text-sm' ,
357- isPreview || disabled ? 'opacity-50' : 'pointer-events-none'
357+ ( isPreview || disabled ) && 'opacity-50' ,
358+ ! ( isPreview || disabled ) && 'pointer-events-none'
358359 ) }
359360 style = { {
360361 fontFamily : 'inherit' ,
Original file line number Diff line number Diff line change @@ -373,7 +373,8 @@ export const ShortInput = memo(function ShortInput({
373373 ref = { overlayRef }
374374 className = { cn (
375375 'absolute inset-0 flex items-center overflow-x-auto bg-transparent px-[8px] py-[6px] pr-3 font-medium font-sans text-foreground text-sm [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden' ,
376- isPreview || disabled ? 'opacity-50' : 'pointer-events-none'
376+ ( isPreview || disabled ) && 'opacity-50' ,
377+ ! ( isPreview || disabled ) && 'pointer-events-none'
377378 ) }
378379 >
379380 < div className = 'min-w-fit whitespace-pre' > { formattedText } </ div >
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import {
3737 isSubBlockFeatureEnabled ,
3838 isSubBlockVisibleForMode ,
3939} from '@/lib/workflows/subblocks/visibility'
40- import { TriggerUtils } from '@/lib/workflows/triggers/triggers'
4140import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
4241import { SubBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components'
4342import { PreviewContextMenu } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-context-menu'
@@ -1142,7 +1141,7 @@ function PreviewEditorContent({
11421141 hasAdvancedValues ( blockConfig . subBlocks , rawValues , canonicalIndex )
11431142
11441143 const isPureTriggerBlock = blockConfig . triggers ?. enabled && blockConfig . category === 'triggers'
1145- const effectiveTrigger = TriggerUtils . isTriggerBlock ( block )
1144+ const effectiveTrigger = block . triggerMode === true
11461145
11471146 const visibleSubBlocks = blockConfig . subBlocks . filter ( ( subBlock ) => {
11481147 if ( subBlock . hidden || subBlock . hideFromPreview ) return false
You can’t perform that action at this time.
0 commit comments