mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
Merge pull request #548 from erzabytyci/user-tiers
improve gap exercises
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user