Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/291672

Change subject: Fix JS error when API request errors
......................................................................

Fix JS error when API request errors

We don't show an error message in this case, just an
empty popup, so that should be fixed regardless.

Change-Id: I06ddd5306bd8d7edeb8c75bdae7abd7215285e3d
---
M modules/ui/mw.echo.ui.NotificationsListWidget.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/72/291672/1

diff --git a/modules/ui/mw.echo.ui.NotificationsListWidget.js 
b/modules/ui/mw.echo.ui.NotificationsListWidget.js
index 0da2479..70a3815 100644
--- a/modules/ui/mw.echo.ui.NotificationsListWidget.js
+++ b/modules/ui/mw.echo.ui.NotificationsListWidget.js
@@ -194,7 +194,9 @@
                        itemWidgets = this.getItems();
 
                for ( i = 0; i < itemWidgets.length; i++ ) {
-                       itemWidgets[ i ].resetInitiallyUnseen();
+                       if ( itemWidgets[ i ].resetInitiallyUnseen ) {
+                               itemWidgets[ i ].resetInitiallyUnseen();
+                       }
                }
        };
 } )( mediaWiki );

-- 
To view, visit https://gerrit.wikimedia.org/r/291672
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I06ddd5306bd8d7edeb8c75bdae7abd7215285e3d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Catrope <roan.katt...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to