We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185767a commit b99e4f2Copy full SHA for b99e4f2
packages/gallery/src/components/helpers/videoScrollHelper.js
@@ -240,10 +240,12 @@ class VideoScrollHelper {
240
241
stop(indexInVideoItems) {
242
if (indexInVideoItems >= 0) {
243
+ const currentVideoId = this.videoItems.find(
244
+ (item) => item.idx === indexInVideoItems
245
+ )?.id;
246
const newRating =
- this.videoRatingMap.get(this.videoItems[indexInVideoItems].id) +
- this.currentItemCount;
- this.videoRatingMap.set(this.videoItems[indexInVideoItems].id, newRating);
247
+ this.videoRatingMap.get(currentVideoId) + this.currentItemCount;
248
+ this.videoRatingMap.set(currentVideoId, newRating);
249
}
250
this.setPlayingIdx(-1);
251
this.playing = false;
0 commit comments