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

Function isVariableStillPresent

apps/sim/stores/operation-queue/store.ts:21–29  ·  view source on GitHub ↗
(variableId: string | undefined)

Source from the content-addressed store, hash-verified

19}
20
21function isVariableStillPresent(variableId: string | undefined): boolean {
22 if (!variableId) return true
23 try {
24 const { useVariablesStore } = require('@/stores/variables/store')
25 return Boolean(useVariablesStore.getState().variables[variableId])
26 } catch {
27 return true
28 }
29}
30
31const logger = createLogger('OperationQueue')
32

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected