Issue #2328
This commit is contained in:
parent
7f7a8bc1cd
commit
59ea3941ee
|
|
@ -73,10 +73,12 @@
|
|||
var slugs = JSON.parse(storedRecentlyViewed);
|
||||
var updatedSlugs = {};
|
||||
|
||||
if (this.quantity) {
|
||||
slugs = slugs.slice(0, this.quantity);
|
||||
if (slugs.length > 3) {
|
||||
slugs = slugs.slice(Math.max(slugs.length - 3, 1));
|
||||
}
|
||||
|
||||
slugs = slugs.reverse();
|
||||
|
||||
slugs.forEach(slug => {
|
||||
updatedSlugs[slug] = {};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue