This commit is contained in:
vorotamoroz
2026-05-13 03:58:08 +01:00
parent 0549e901b2
commit a130e3700e
3 changed files with 10 additions and 15 deletions

View File

@@ -286,8 +286,7 @@ export class DocumentHistoryModal extends Modal {
if (direction === "next") {
this.currentDiffIndex = (this.currentDiffIndex + 1) % diffElements.length;
} else {
this.currentDiffIndex =
this.currentDiffIndex <= 0 ? diffElements.length - 1 : this.currentDiffIndex - 1;
this.currentDiffIndex = this.currentDiffIndex <= 0 ? diffElements.length - 1 : this.currentDiffIndex - 1;
}
const target = diffElements[this.currentDiffIndex];