Fix missing definition of setSaveErrorMessage too

Follow-up to 6a17f6121c
and 4ec197a8cb.

Bug: T373288
Change-Id: I5250354fec0c217faa43a7fb2f51ee68c4116ab8
(cherry picked from commit 5bb03b9e7f)
This commit is contained in:
Bartosz Dziewoński 2024-08-27 23:13:27 +02:00
parent a74379a927
commit 8f1f0a7d46

View file

@ -1072,7 +1072,7 @@ ReplyWidget.prototype.onReplyClick = function () {
* @param {string} code Error code * @param {string} code Error code
* @param {Object} data Error data * @param {Object} data Error data
*/ */
ReplyWidget.setSaveErrorMessage = function ( code, data ) { ReplyWidget.prototype.setSaveErrorMessage = function ( code, data ) {
if ( !( if ( !(
// Don't duplicate the parentRemovedErrorMessage // Don't duplicate the parentRemovedErrorMessage
code === 'discussiontools-commentname-notfound' && this.parentRemovedErrorMessage code === 'discussiontools-commentname-notfound' && this.parentRemovedErrorMessage