You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is some problem (onCurrentImageEnd). This method does not check the current index in the array of images and an error occurs: (going out of the array).:
onCurrentImageEnd(index) {
if (this.key in this.stories[index].images){
this.stories[index].images[this.key].viewed = true;
this.$emit('сurrentImageEnd', this.key);
this.key++;
} else {
this.key = 0
}
},
ALSO I suggest emitting an object of the following type at (onCurrentImageEnd): this.$emit('сurrentImageEnd', { 'story': this.indexSelected, 'image': this.key });
I suggest calling the method сurrentAllImagesEnd at the beginning of onAllStoriesEnd:
this.$emit('сurrentImageEnd', { 'story': this.indexSelected, 'image': this.key });
Thank you for Library.
The text was updated successfully, but these errors were encountered: