mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 15:36:58 +00:00
Fix type error caused by spread operator on number
`groupItems[ i ].id` is of type number, and using the spread operator on it results in a type error. This prevented users from marking multiple cross-wiki notifications as read, with the associated button. Bug: T368643 Change-Id: I53d404445956de288aeda8fbfe1bdd1256214839
This commit is contained in:
parent
90bf6ae253
commit
68aa29fb80
|
@ -676,7 +676,7 @@
|
|||
|
||||
const idArray = [];
|
||||
for ( let i = 0; i < groupItems.length; i++ ) {
|
||||
idArray.push( ...groupItems[ i ].id, ...( groupItems[ i ].bundledIds || [] ) );
|
||||
idArray.push( groupItems[ i ].id, ...( groupItems[ i ].bundledIds || [] ) );
|
||||
}
|
||||
|
||||
// Mark items as read in the API
|
||||
|
|
Loading…
Reference in a new issue