(blockId: string | undefined)
| 9 | } from './types' |
| 10 | |
| 11 | function 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 | |
| 21 | function isVariableStillPresent(variableId: string | undefined): boolean { |
| 22 | if (!variableId) return true |
no outgoing calls
no test coverage detected