Skip to content

Commit 68bc9f6

Browse files
committed
chore(tag-dropdown): remove no-op starter block filter
1 parent a44e766 commit 68bc9f6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-accessible-reference-prefixes.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useMemo } from 'react'
22
import { useShallow } from 'zustand/react/shallow'
33
import { BlockPathCalculator } from '@/lib/workflows/blocks/block-path-calculator'
44
import { SYSTEM_REFERENCE_PREFIXES } from '@/lib/workflows/sanitization/references'
5-
import { isInputDefinitionTrigger } from '@/lib/workflows/triggers/input-definition-triggers'
65
import { normalizeName } from '@/executor/constants'
76
import { useWorkflowStore } from '@/stores/workflows/workflow/store'
87
import type { Loop } from '@/stores/workflows/workflow/types'
@@ -26,11 +25,6 @@ export function useAccessibleReferencePrefixes(blockId?: string | null): Set<str
2625
const accessibleIds = new Set<string>(ancestorIds)
2726
accessibleIds.add(blockId)
2827

29-
const starterBlock = Object.values(blocks).find((block) => isInputDefinitionTrigger(block.type))
30-
if (starterBlock && ancestorIds.includes(starterBlock.id)) {
31-
accessibleIds.add(starterBlock.id)
32-
}
33-
3428
const loopValues = Object.values(loops as Record<string, Loop>)
3529
loopValues.forEach((loop) => {
3630
if (!loop?.nodes) return

0 commit comments

Comments
 (0)