MCPcopy
hub / github.com/simstudioai/sim / isAncestorProtected

Function isAncestorProtected

apps/sim/stores/workflows/workflow/utils.ts:186–188  ·  view source on GitHub ↗
(blockId: string, blocks: Record<string, BlockState>)

Source from the content-addressed store, hash-verified

184 * @returns True if any ancestor is locked
185 */
186export function isAncestorProtected(blockId: string, blocks: Record<string, BlockState>): boolean {
187 return isWorkflowBlockAncestorLocked(blockId, blocks)
188}
189
190/**
191 * Checks if a block is protected from editing/deletion.

Callers 2

utils.test.tsFile · 0.90
EditorFunction · 0.85

Calls 1

Tested by

no test coverage detected