From e9c7503c728bf18304c1b0ef2a48535c8380c260 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 12 Dec 2024 14:11:38 +0000 Subject: [PATCH] EditCheckDialog: Reset currentChecks on setup Change-Id: Iaf0fb4122f5c7168f55e73beaf9c69add1912ae3 --- editcheck/modules/EditCheckDialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editcheck/modules/EditCheckDialog.js b/editcheck/modules/EditCheckDialog.js index 34766a7905..4c8fe52121 100644 --- a/editcheck/modules/EditCheckDialog.js +++ b/editcheck/modules/EditCheckDialog.js @@ -66,6 +66,7 @@ ve.ui.EditCheckDialog.prototype.initialize = function () { } ); this.currentOffset = 0; + this.currentChecks = null; this.footerLabel = new OO.ui.LabelWidget(); this.previousButton = new OO.ui.ButtonWidget( { @@ -245,6 +246,7 @@ ve.ui.EditCheckDialog.prototype.getSetupProcess = function ( data ) { return ve.ui.EditCheckDialog.super.prototype.getSetupProcess.call( this, data ) .first( () => { this.currentOffset = 0; + this.currentChecks = null; this.listener = data.listener || 'onDocumentChange'; this.reviewMode = data.reviewMode; this.surface = data.surface;