MCPcopy Index your code
hub / github.com/simstudioai/sim / isBlockStillPresent

Function isBlockStillPresent

apps/sim/stores/operation-queue/store.ts:11–19  ·  view source on GitHub ↗
(blockId: string | undefined)

Source from the content-addressed store, hash-verified

9} from './types'
10
11function isBlockStillPresent(blockId: string | undefined): boolean {
12 if (!blockId) return true
13 try {
14 const { useWorkflowStore } = require('@/stores/workflows/workflow/store')
15 return Boolean(useWorkflowStore.getState().blocks[blockId])
16 } catch {
17 return true
18 }
19}
20
21function isVariableStillPresent(variableId: string | undefined): boolean {
22 if (!variableId) return true

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected