Enode — API Reference
    Preparing search index...
    • Removes every value whose base the new exercise can't use, keeping the rest.

      Parameters

      Returns { blocks: WorkoutBlockReturnDto[]; removed: number }

      The new blocks and how many values were cleared.

      Used when a slot's exercise is changed: the coach may pick ANY exercise, and a value the new exercise doesn't offer (e.g. a velocity-loss cut-off on an exercise without velocity bases) is cleared, leaving its cell empty. Blocks themselves, their order and notes stay — a block left without a required value is flagged by the builder's completeness rule, not silently dropped. A normative whose base can't be resolved (catalogue not loaded) is kept: never wipe what can't be checked.