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:
Dr4goniez 2024-07-25 00:14:46 +09:00 committed by Dragoniez
parent 90bf6ae253
commit 68aa29fb80

View file

@ -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