Merge pull request #548 from erzabytyci/user-tiers

improve gap exercises
This commit is contained in:
erzabytyci
2026-09-28 20:59:45 +03:00
committed by GitHub
@@ -333,12 +333,16 @@ export default function CreateFillInTheGapExercisePage() {
setError("");
try {
// Re-derive token_index from the current tokenization on every save so legacy
// exercises self-heal instead of persisting stale indices from older tokenizers.
const healedGaps = remapGapsToTokens(gaps, tokens);
const payload = {
title,
instructionText,
text,
textHtml,
gaps,
gaps: healedGaps,
};
if (isEditMode) {